Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade itext dependency #5

Closed
dangerusslee opened this issue Mar 28, 2017 · 6 comments
Closed

upgrade itext dependency #5

dangerusslee opened this issue Mar 28, 2017 · 6 comments

Comments

@dangerusslee
Copy link

jasperreports is currently depending on itext 2.1.7.js5, which is pretty old and is depending on other old things such as bctsp-jdk14, among others, which have security vulnerabilities.

Would it be possible to upgrade jasperreports to use a more recent version of itext, lets say 5.5.11?

com.itextpdf itextpdf 5.5.11
@teodord
Copy link
Collaborator

teodord commented Mar 29, 2017

Hi,

You are probably aware that since version 5, iText has changed its license to AGPL, which prevents its use in commercial products. You would need to purchase a commercial license of iText.
As far as JR Library is concerned, we cannot depend on an AGPL dependency without having to become AGPL ourselves, and this is why we cannot upgrade past 2.1.7.

You can implement your own PDF exporter using iText 5+.

Thank you,
Teodor

@dangerusslee
Copy link
Author

dangerusslee commented Mar 29, 2017

What about using version 4.2.2?

<!-- https://mvnrepository.com/artifact/com.lowagie/itext --> <dependency> <groupId>com.lowagie</groupId> <artifactId>itext</artifactId> <version>4.2.2</version> </dependency>

@JohneDoe
Copy link

@teodord
Interested in an PdfBox Implementation of the PDF-Exporter?

@danielpeintner
Copy link

FYI: I recently got to know about the OpenPDF efforts which might be of interest. It is a fork of iText...

@teodord
Copy link
Collaborator

teodord commented Jun 18, 2018

For the core JRL distro, we use our own iText 2.1.7 fork in which we have implemented a custom way to deal with fonts that have ligatures. This is now a feature that is tightly related to JRL and does not necessarily make sense in other products that generate PDF (although we've seen it being adopted in the OpenPDF fork of iText).

Not sure if we are going to switch to OpenPDF any time soon, but in the meantime, we have created a new exporter based on iText 5+, which is published under AGPL, to make it compatible with the iText 5+ license.
It is a separate project and you can build it from source and use it in accordance with the AGPL terms:
https://github.com/Jaspersoft/jasperreports-pdf-lib5

@teodord teodord closed this as completed Jun 18, 2018
@codecracker2014
Copy link

codecracker2014 commented Feb 3, 2020

@teodord support for advance typography(TTF tables processing) has been added to OpenPDF with 1.3.13 release, hope this will address font processing requirements. Please suggest if we can integrate jasperreports with OpenPDF

Refer below:
LibrePDF/OpenPDF#329
LibrePDF/OpenPDF#297
https://github.com/LibrePDF/OpenPDF/releases/tag/1.3.13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants