繁体   English   中英

如何在 java 中将网页另存为 pdf?

[英]how to save a webpage as pdf in java?

我有一个使用 JSP、struts 和 jQuery 构建的页面,它的数据是在页面加载后出现的。

我想通过单击按钮将页面保存为包含所有内容和相同格式的 PDF 文件。 我可以将 HTML 转换为 PDF,如果我可以保存包含所有内容的页面,我可以转换为 PDF。

用户可以使用任何浏览器加载页面,我希望某事在所有浏览器中都起作用。

如何将此属性的页面保存为 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.

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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