HTML5 PDF Generator

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 a HTML5 client side solution to creating PDFs called jsPDF.

This 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 include IE6+, Firefox 3+, Chrome 3+, Safari 3+ and Opera.

Try it out on with your next project.


Back to top

Learn how to code with Treehouse

  • Learn projects with access to 1000+ videos
  • Practice live with our Code Challenge Engine
  • Get help in our members-only forums

Start with a 7 day free trial