The Web Dev Zone is brought to you in partnership with Mendix. Download this Forrester Report to gain a better understanding of the low-code platform market and how to make a strategic platform selection you won’t regret.
Normally, if you wanted to programmatically create PDFs, you would have to use a server side client, such as PDFLib, FPDF, TCPDF, DomPDF.
Here is an HTML5 client-side solution to creating PDFs called jsPDF.
It comes with a number of features, including:
- Add images.
- Add different font faces and change font sizes.
- Convert HTML to PDF.
- Add multiple pages.
- Draw shapes.
- Convert page layout from portrait to landscape.
- Split strings to fit text on the page.
Try it out on your next project: jsPDF
The Web Dev Zone is brought to you in partnership with Mendix. Better understand the aPaaS landscape and how the right platform can accelerate your software delivery cadence and capacity with the Gartner 2015 Magic Quadrant for Enterprise Application Platform as a Service.
Published at DZone with permission of
, DZone MVB
Opinions expressed by DZone contributors are their own.