Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

jsPDF: an HTML5 Solution to Creating PDFs

DZone's Guide to

jsPDF: an HTML5 Solution to Creating PDFs

· Web Dev Zone
Free Resource

Start coding today to experience the powerful engine that drives data application’s development, brought to you in partnership with Qlik.

jsPDF - HTML5 PDF Generator - Parallax

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.

Browser Support

Because this uses a Javascript library, it is compatible with all major browsers, including IE6+, Firefox 3+, Chrome 3+, Safari 3+ and Opera.

Try it out on your next project: jsPDF

Create data driven applications in Qlik’s free and easy to use coding environment, brought to you in partnership with Qlik.

Topics:
java ,html5 ,javascript ,pdf ,tool ,tips and tricks ,html & xhtml ,jspdf

Published at DZone with permission of Paul Underwood, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}