从 XML 和 XSL-FO 生成客户端 PDF?
是否有任何基于浏览器的客户端 PDF 生成工具可以获取 XML 数据和 XSL-FO 文件并生成相应的 PDF 文件?
为了澄清“客户端”,我的意思是网络客户端/网络浏览器。基本上,用户应该能够在桌面或移动平台上的主要浏览器上访问网页(这意味着禁止 Flash 和 Java 以及其他此类附加组件),拥有一些在本地使用的数据,然后能够根据该数据生成 PDF,而无需安装其他应用程序。
就我个人而言,我认为这样的工具非常棒,而且我知道我并不孤单,因为至少有 542 个其他工具人们也这么认为! :)
然而,根据我的研究,我还没有找到一个可以做到这一点的客户端解决方案,无论是付费还是免费。大多数客户端 PDF 生成工具似乎还处于起步阶段,需要自定义代码来生成 PDF、需要闪存和/或完全忽略 XSL-FO。
另外,我在想也许这可以在小程序中使用现有的 XSL-FO 转 PDF 工具来完成,但是许多移动设备(Ipad for one) 不允许 java applet,而移动设备是主要原因之一首先,离线生成 PDF 就太好了!
我想我可以根据 ISO 32000 编写一个“Conforming Writer” -1:2008 PDF 标准和 文件 API,但这似乎有点矫枉过正,除非我决定进入 PDF 生成业务......
任何信息将不胜感激!
Is there any browser-based client-side PDF generation tool that takes XML data and an XSL-FO file and generates a corresponding PDF file?
To clarify "Client" I mean a web-client/web-browser. Basically, a user should be able to go to a web page on a major browser on either a desktop or mobile platform (meaning flash and Java and other such add-ons are prohibited), have some data that they work with locally, and then be able to generate a PDF based on that data without installing an additional application.
Personally, I think such a tool would be awesome, and I know I'm not alone because at least 542 other people think so too! :)
However, from my research I have not yet found a single client-side solution, paid or unpaid, that does this. Most client-side PDF generation tools seem to be in their infancy, require custom code to generate the PDF, require flash, and/or overlook XSL-FO entirely.
Also, I was thinking maybe this could be done in an applet using existing XSL-FO to PDF tools, but then many mobile devices (Ipad for one) do not allow java applets, and mobile devices are one of the main reasons why offline PDF generation would be so nice in the first place!
I suppose I could write a "Conforming Writer" based on the ISO 32000-1:2008 PDF standard and the File API, but that seems like overkill unless I decide I want to go into the PDF generation business...
Any information would be greatly appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 Apache FOP 用 Java 开发自己的客户端非常容易。
你可以看看这些例子,我认为它们的作用正是你需要(没有 GUI)。
It is pretty easy to use Apache FOP to develop your own client in Java.
You can take a look at these examples, I think they do exactly what you need (without a GUI).