JasperReports java库:它能处理PDF 2.0(ISO 32000-2:2017)吗? [英] JasperReports java library: Can it handle PDF 2.0 (ISO 32000-2:2017)?

查看:109
本文介绍了JasperReports java库:它能处理PDF 2.0(ISO 32000-2:2017)吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在我的java项目中使用JasperReports一段时间了,但现在我遇到了一个问题。
客户需要生成符合ISO 32000-2:2017标准的PDF文件。 JasperReports使用iText进行pdf渲染,我知道最新版本的iText可以处理PDF 2.0,但我发现JasperReports目前正在使用较旧版本的iText,因为新版本的IP问题。
这是否意味着我无法使用此库创建与PDF2.0兼容的文件?你有其他选择吗?

I've been using JasperReports in my java projects for a while, but now i'm facing a problem. A customer requires the generation of PDF files compliant with the ISO 32000-2:2017 standard. JasperReports uses iText for pdf rendering, and I know that the latest version of iText can handle PDF 2.0, but i've found out that JasperReports is currently using an older version of iText because of IP issues with the newer releases. Does it mean that i cannot create PDF2.0-compatible files with this library? Do you have any alternative?

提前致谢

推荐答案

否,JasperReports不支持PDF 2.0。 JasperReports不能使用iText 7.1.x,因为(1.)其开源许可证与iText的开源许可证不兼容,并且(2.)据我所知,TIBCO不是iText Group的付费客户。

No, JasperReports doesn't support PDF 2.0. JasperReports can't use iText 7.1.x because (1.) its open source license isn't compatible with iText's open source license, and (2.) as far as I know, TIBCO isn't a paying customer of iText Group.

作为替代方案,您可以查看 iText DITO 。 DITO代表Design Interactive Templates Online。这是iText Group的新产品即将发布,但如果您联系iText,您可能会提前获得。

As an alternative, you might look into iText DITO. DITO stands for Design Interactive Templates Online. It's a new product from iText Group that will be released soon, but if you contact iText, you might get early access.

目标是让人们创建两种类型使用WYSIWYG工具的模板。

The goal is to allow people to create two types of templates using a WYSIWYG tool.


  • 第一种类型包含输入模板。当与DITO SDK一起部署时,它会生成可用于手动输入数据的HTML 5表单。

  • 第二种类型包含输出模板。与DITO SDK一起部署时,它会生成PDF文档(PDF 2.0,PDF / A,PDF / UA,...)。

模板本身是 .dito 文件。该文件是一个ZIP文件,包含HTML,CSS,图像等资源,以及有关模板中变量字段与实际数据(例如存储在JSON文件中的数据)之间数据绑定的信息。

The template itself is a .dito file. That file is a ZIP file containing HTML, CSS, resources such as images, and information about data binding between the variable fields in your template and your actual data (e.g. data stored in a JSON file).

DITO SDK采用HTML模板,使用基于数据绑定的数据填充它,然后使用iText 7和pdfHTML插件创建PDF。

The DITO SDK takes the HTML template, populates it with data based on the data binding, and then uses iText 7 and the pdfHTML add-on to create the PDF.

目前,我不知道有任何其他供应商拥有支持PDF 2.0的模板解决方案。

Currently, I don't know of any other vendor that has a templating solution that supports PDF 2.0.

这篇关于JasperReports java库:它能处理PDF 2.0(ISO 32000-2:2017)吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆