简体   繁体   中英

How do I export my HTML page which is dynamically generated by AngularJs as PDF?

I have tested JavaScript library jsPDF for a exporting a complete page to pdf and downloading the same. Wasn't really happy with the format of elements that has an overflow which I have handled through CSS. But seems to get the basic work dome. Also has some issues if i assign it to onload event. The page gets stuck and browser stops responding.

The Kendo library seem to do an Ok job for me clientside but you do get some rendering issues now and then.

You will get the best results from a server side rendering library. You can scrape the HTML from the DOM and send it server side to a rendering engine like ABCPDF and the results are usually pretty good.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM