JsPDF opensource library is a popular javascript framework to handle pdf/HTML manipulation in client side. Easier to use - creating a PDF from an HTML element/page/string is one line: html2pdf (element) Fits content to the page - it copies the HTML first into an (invisible) container div with the PDF page width, so that content can resize appropriately (also working on a 'shrink-to-page' option. Let's create a HTML form with data and a button DEMO Convert HTML TO PDF.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |