Jasper 报告 PDF 标记

发布于 2024-09-14 09:41:01 字数 122 浏览 2 评论 0原文

我听说您可以标记使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

困倦 2024-09-21 09:41:01

如果将以下代码放入 JRXML 文件中:

<property name="net.sf.jasperreports.export.pdf.tagged" value="true"/>
<property name="net.sf.jasperreports.export.pdf.tag.language" value="EN-US"/>

...则 PDF 应在生成时标记。至少,这是我在 JasperReports 4.0.1 中发现的。我不能谈论早期版本。

编辑:顺便说一句,这也是在图像上显示工具提示的一种方法,就可访问性而言,它可以用作图像的替代文本。

If you place the following code in the JRXML file:

<property name="net.sf.jasperreports.export.pdf.tagged" value="true"/>
<property name="net.sf.jasperreports.export.pdf.tag.language" value="EN-US"/>

...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.

他是夢罘是命 2024-09-21 09:41:01

首先,我要向你道歉,因为我无法正确回答这个问题。

无论如何,我正在寻找同一个问题的答案,我只能收集一些有用的链接来继续搜索:

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.

〃温暖了心ぐ 2024-09-21 09:41:01

从 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文