Jasper 报告 PDF 标记
我听说您可以标记使用 Jasper Reports 生成的 PDF 文档,但我还没有找到任何有关如何执行此操作的示例。
这里有人有如何标记 PDF 文档的示例吗?
我有兴趣标记它们以创建易于访问的 PDF。
I have heard that you can tag PDF documents generated using Jasper Reports but I haven't found any examples of how to do it.
Does anyone here have an example of how you would tag a PDF document?
I'm interested in tagging them to create accessible PDFs.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果将以下代码放入 JRXML 文件中:
...则 PDF 应在生成时标记。至少,这是我在 JasperReports 4.0.1 中发现的。我不能谈论早期版本。
编辑:顺便说一句,这也是在图像上显示工具提示的一种方法,就可访问性而言,它可以用作图像的替代文本。
If you place the following code in the JRXML file:
...then the PDF should be tagged when generated. At least, this is what I've found as of JasperReports 4.0.1. I can't speak for earlier versions.
EDIT: On a sidenote, this is also a way to get Tooltips to show on images, which can be used as alt text for the image, with regard to accessibility.
首先,我要向你道歉,因为我无法正确回答这个问题。
无论如何,我正在寻找同一个问题的答案,我只能收集一些有用的链接来继续搜索:
http://jasperforge.org/plugins/espforum/view.php?group_id=102&forumid=103&topicid=72177
http://jasperreports.sourceforge.net/api/net/sf /jasperreports/engine/export/JRPdfExporterTagHelper.html
希望它有助于保持问题的活力并在这里为其他人带来经验。
First of all, I'd like to apologize since I cannot answer this question the right way.
Anyway I'm looking for an answer to the same exact question and I can only collect a couple of useful links to keep on searching:
http://jasperforge.org/plugins/espforum/view.php?group_id=102&forumid=103&topicid=72177
http://jasperreports.sourceforge.net/api/net/sf/jasperreports/engine/export/JRPdfExporterTagHelper.html
Hope it helps to keep the question alive and bring others experiences here.
从 Jasper Reports 来源来看,有一个 demo/samples 文件夹,表格报告是一个带标签的 pdf 报告。
iReport 有关于如何使用可用标签(table、tr、td、h1、h2、h3 等)的提示。单击“属性表达式”,然后单击“添加”,您将在属性/值字段下方看到提示。
From Jasper Reports sources, there is a demo/samples folder, the Tabular report is a tagged pdf report.
iReport has tips on how to use the available tags (table, tr, td, h1, h2, h3, etc). Click on Properties Expressions and then hit 'Add' you'll see the tips below the property/value fields.