0
Does anyone know a way to generate pdf of a page via javascript without the use of library or at most with the use of JS angular ?
0
Does anyone know a way to generate pdf of a page via javascript without the use of library or at most with the use of JS angular ?
3
I know two, one converts Markdown to PDF, the other uses a FPDF-like syntax scheme.
https://github.com/MrRio/jsPDF
https://github.com/devongovett/pdfkit
https://github.com/alanshaw/markdown-pdf
I have done some tests with jsPDF and pdfkit, they are very similar in use and work to the satisfaction, but I have not tested with generation of many pages.
very good, the one of the alanshaw did not know. I will try with him something. Despite having already solved via server, but for future projects it is interesting to have solutions.
I made a simple generation of receipts, being that from the server only comes the data json and the design of the pdf is done in the client, it was very fast
Browser other questions tagged javascript angularjs
You are not signed in. Login or sign up in order to post.
I believe it is not possible using Javascript or Angular only, but you may consider using jsPDF -> http://parall.ax/products/jspdf
– abfurlan
I’m actually considering the pdf.js library from Mozilla. . . .
– Edmo
Interesting too :)
– abfurlan