简体   繁体   中英

how to save a webpage as pdf in java?

I have a page that built with JSP, struts and jQuery that its data come after page loading.

I want to save the page as PDF-file with all contents and the same format with a button click. I can convert HTML to PDF and if I can save the page with all contents, I can convert to PDF.

The users can load the page with any browser and I want sth to act in all browsers.

How to save a page with this properties as pdf?

Your button, will need to capture the output from the jsp using the same URL and then pass the written HTML to something like flying saucer.

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