[Vuejs]-How to generate pdf from html and css in Vuejs?

0πŸ‘

βœ…

I found Kendo UI is the best api for pdf from DOM.

https://docs.telerik.com/kendo-ui/framework/drawing/drawing-dom

πŸ‘€Raj

4πŸ‘

I recommend you to investigate a bit different approach for generating PDF from HTML just because all the client-side libraries for HTML to PDF generation have lots of problems when generating really complex documents with lots of formatting etc.

The alternative way is to perform the PDF generation itself on the server-side. For example, you could make use of Headless Chrome managed by your backend for turning any HTML into PDF.

We used a very similar approach to implement pdf generation for this free resume builder service. The only downside we faced was that different browsers like Firefox or IE might occasionally display an HTML document a bit different than it’s printed out as PDF bu Chrome. Good luck!

πŸ‘€Andrew Taylor

0πŸ‘

You might want to give Pdf Make a try.

PDF Make on Github

It has support for styling and links. But you have to do most of the styling yourself.

πŸ‘€tvdpol

Leave a comment