在 WebObjects 中从多页表单创建 PDF
我想根据多页表单自动从 WebObjects 生成 PDF 文档。 假设我有一个可以组装相关表单(java/wod 文件)的类,有没有一种好方法可以将各个表单解析为 PDF,而不是转到屏幕?
I would like to automatically generate PDF documents from WebObjects based on mulitpage forms. Assuming I have a class which can assemble the related forms (java/wod files) is there a good way to then parse the individual forms into a PDF instead of going to the screen?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
当被问及来自 WebObjects 的 PDF 时,规范的回答通常是 ReportMill。 它是一个 PDF 文档生成框架,其工作原理与 WebObjects 非常相似,并且包含自己的图形 PDF 生成器工具,类似于 WebObjects Builder 和 Interface Builder。 您可以将生成的 PDF 中的元素绑定到应用程序中的动态数据,就像绑定
WOComponent
一样。他们在 ReportMill 产品页面上有几个教程视频,可以让您了解该工具的工作原理。 这可能比尝试以编程方式使用 FOP 容易得多。
The canonical response when asked about PDFs from WebObjects has generally been ReportMill. It's a PDF document generating framework that works a lot like WebObjects, and includes its own graphical PDF builder tool similar to WebObjects Builder and Interface Builder. You can bind elements in your generated PDFs to dynamic data in your application just as you would for a
WOComponent
.They have couple of tutorial videos on the ReportMill product page that should give you an idea of how the tool works. It'll probably be a lot easier than trying to work with FOP programmatically.
我不熟悉 WebObjects,但我看到你在那里列出了 java。
iText 是一个用于构建 pdf 的 java api。 如果您可以从 WebObjects 访问 java api,您应该能够以这种方式构建 pdf。
I'm not familiar with WebObjects, but I see you have java listed in there.
iText is a java api for building pdfs. If you can access a java api from WebObjects you should be able to build pdfs that way.
Project Wonder 中的 ERPDFWrapper 组件:站点链接
ERPDFWrapper component in Project Wonder: Site link
ScArcher2>>
我研究了动态创建 PDF 的不同途径,包括 FOP 和一些 Java 库。 我想我真正要问的是是否有人已经在 WebObjects 框架中做到了这一点。 我希望熟悉 WebObjects 的人可能已经完成了这项工作,并且有一些见解可以节省我一些时间。
ScArcher2>>
I have looked into different routes for creating PDFs on the fly including FOP and a few Java libraries. I think what I am really asking is if anyone has already done this in the WebObjects framework. My hope is that someone familiar with WebObjects might have done this already and have some insight that would save me some time.
您可以使用 ReportMill 或 Jasper Reports。 与ReportMill相比,Jasper Reports是免费的,但需要学习庞大的库。 您可以使用 IReport 或 Jasper Assistant eclipse 插件(如果您使用 WOLips)来构建报告模板。 我的经验两者都很好。
You can use ReportMill or Jasper Reports. Compared with ReportMill Jasper Reports is Free but requires learning huge library. You can use IReport or Jasper Assistant eclipse plugin(If you are using WOLips) for building report templates. My experiance both are good.
Jasper Reports 支持已在一周前添加到 Project Wonder 中:
站点链接视频
在 WOWODC 2010 上进行了有关新框架的讨论,并进行了记录。 检查 wocommunity.org 和 10 月份的邮件列表。
Jasper Reports support have been added to Project Wonder a week ago :
Site Link Video
A talk about that new framework was done at WOWODC 2010, and it was recorded. Check wocommunity.org and the mailing list about that in October.