In this video you will learn how to generate dynamic PDFs using Node JS and React. PDFs are going to be generated from an HTML file. Anything that you can write in HTML and CSS can be converted to a dynamic PDF.
GitHub Repository –
Article on Medium –
HTML Template –
If you found this video educational, a subscribe would mean a lot, a lot of interesting tutorials are coming –
Many of you had requested that I create a patreon, here it is, you get the chance to become one of the first supporters –
Learn Async/Await –
Learn ES6 –
Don’t click this link – …(read more)
Convert Word 2 PDF: Word to PDF Converter
Convert PowerPoint 2 PDF: PPT to PDF Converter
Convert Excel 2 PDF: Excel to PDF Converter
Convert an Image 2 PDF: Image to PDF Converter
Convert HTML 2 PDF: HTML to PDF Converter
More Tools: PDF Converter
Thank. You for the video. Is a nice code to implement in many applications
Can we use <script></script> inside the template string? will it work
html-pdf is now deprecated.
Thank you for the tutorial!
Thank you
ThankU
Why is flexbox not working in the template?
Hey can you please update this tutorial?
How to create template with Array of Objects? please reply…
can you create a dropdown in html and save it as pdf with dropdown format included in the pdf. meaning when it save as pdf the dropdown still option on the pdf. i want to create a form that save from html to pdf with the bottom option have a dropdown for the manager to finish fill out
I had to watch so many videos until I found you 🙂 Thank you so much for the great video. This is perfect for all sorts of web applications!
Can you update this tutorial? Thank you.
It's awesome project but lack explanation line by line for beginners, also i get 404 error on console when trying to generate the PDF, if i can send you the code link for check would be really appreciated
ok, but how to generate a pdf from react/jsx, not from html?
Thanks for very helpful video. Can we use similar HTML templates to print any reports from ReactJS application. If so, can you make a video that shows how we store these templates in backend and then, based on the user choice, get a template into ReactJS application using a REST API and use it in printing a report. Thanks
.then().then() was calling api's two time in my case so it was not working
So you can simply use async and await
How to save to database help me please
I'm just getting the error "__dirname is not defined" in my server console. The receipt is generated. Any solutions?