How to generate PDF using HTML5 and JavaScript

25,440

Try this : http://jspdf.com/ It is a HTML5 JavaScript PDF generation library.

Share:
25,440
Tejas Patel
Author by

Tejas Patel

Updated on March 31, 2020

Comments

  • Tejas Patel
    Tejas Patel about 4 years

    I have a project in HTML5, I have used canvas in it. I want to export the content of the canvas to a PDF file.

    Can anyone suggest how can I do that using either JavaScript or jQuery or any other JavaScript library?

    • Julien May
      Julien May about 12 years
    • Varun Sridharan
      Varun Sridharan over 11 years
      do you use any php code in your project... if yes you can use dompdf which is an open source script
  • Bill the Lizard
    Bill the Lizard about 11 years
    Welcome to Stack Overflow! While this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.