Use the html2pdf library to enable html formatting

- Use html2pdf library
- Added HTML support for cards