创建 PDF 格式的交互式报告
我想创建可供读者深入研究的报告 - 但报告必须是 PDF 格式。 我有两个选择:
- 从 PDF 链接到在线报告工具
- 使报告本身具有交互性
我喜欢#2...
我相信我可以使用 Adobe AIR(Flex、Flash + Adobe Reader 9 或更高版本)来做到这一点。
有可以以编程方式创建 PDF 文档的工具(AIR?、AlivePDF)
Adboe 中有非常适合报告和图表的框架(Flex)
PDF 文档可以包含 flash 内容(Adobe Reader 9+)
我的问题是:
如果我在 PDF 文档中有一个交互式 Flash 组件并且我要打印,会打印什么? Flash 的当前视图会打印吗?
如果我想深入了解,所有数据都必须位于 PDF 文档中(它必须是独立的)。 这很好...但是如何以编程方式将数据放入 PDF 中? 这是通过 Flex 和 AlivePDF 完成的吗?
我在 PDF 文档中看到了交互式图表报告的在线示例,但现在找不到了。 :( 如果您知道的话,我很想再次找到一些东西。
我觉得我可能拥有所有的部分,但没有正确理解它们是如何组合在一起的。
I want to create reports that can be drilled down by the readers - but the reports have to be PDF. I have two options:
- Link from the PDF to an online report tool
- Make the reports themselves interactive
I like #2...
I believe I can do this with Adobe AIR (Flex, Flash + Adobe Reader 9 or higher).
There are tools that can create PDF documents programatically (AIR?, AlivePDF)
There are frameworks in Adboe that are ideal for reports and charts (Flex)
And PDF documents can contain flash content (Adobe Reader 9+)
My questions are:
If I have an interactive Flash component in a PDF document and I go to print, what will print? Will the current view of he Flash print?
If I want to drill down, all the data has to be in the PDF document (it has to be stand alone). This is fine... but how to do I put the data in the PDF programatically? Is this done with Flex and AlivePDF?
I saw an online sample of an interactive charting report in a PDF document, but now I can't find it. :( I would love to find something again if you know of one.
I feel that I may have all the pieces, but not understanding correctly how they all go together. Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
问题 3 的回答: 目前,AlivePDF 不允许您将 Flash 内容嵌入到生成的 PDF 中。 生成的 PDF 可以包含文本、图像、简单图形和某些非视觉功能(例如书签)。
Answer to question 3: Currently AlivePDF does not allow you to embed Flash content into a generated PDF. The generated PDFs can include text, images, simple graphics, and certain non-visual features such as bookmarks.
PDF 现在将 JavaScript 作为本机控制语言。 有了它,您可以嵌入跳转到其他页面的“链接”等。
理论上,您可以使用 JS 从 PDF 中调用 Web 服务并处理响应,甚至可以动态填充页面区域。
但是
PDF 非常适合提供在任何地方看起来和打印都相同的文档。 它们也适合填写表格。 它们不是为客户端“向下钻取”而构建的。 您能否检查该项目的目标以了解他们为什么需要动态 PDF? 如果他们想要可移植性(即没有 Web 连接),也许您可以通过 AIR 应用程序和 XML 文件为他们提供他们想要的东西。
干杯
PDF's have JavaScript as a native control language now. With it, you can embed "links" that jump to other pages, etc.
Theoretically, you can call web services from within a PDF using JS and process the responses, perhaps even dynamically filling page areas.
BUT
PDF's are good for providing a document that looks and prints the same everywhere. They are also good for fill-in forms. They are NOT built for "drill-down" on the client side. Can you check the goals of the project to see why they want dynamic PDF's ? If they want portability (i.e. without a web connection), perhaps you can give them what they want with an AIR application and an XML file.
Cheers
我们使用flex作为前端为PDF/flashpaper/等开发了交互式内容报告,但使用coldfusion的cfdocument/cfpdf(或Itext,如果我们确实需要疯狂的放置水平)在服务器端处理实际的报告创建/控制/等)。 基本上,用户选择内容和内容。 后端的 cf 应用程序将其布局& 发回报告。
we developed interactive content reports for PDF/flashpaper/etc using flex as a front-end but handle the actual report creation server-side using coldfusion's cfdocument/cfpdf (or Itext if we really need insane levels of placement/control/etc.). basically the user chooses the content & the cf app on the backend lays it out & sends back the report.