Jump to content
Changes to the Jaspersoft community edition download ×

Jasperreports 4.5.0 not compatible with itext 5.1.3 (JRPdfExporter)


Peetzer

Recommended Posts

JRPdfExporter, JRPdfExporterContext, JRPdfExporterTagHelper, PdfTextRenderer and BreakIteratorSplitCharacter refer to com.lowagie.text, in the latest itext libraries this is changed to com.itextpdf.text.

Solution is to refer to old library like itext-2.0.6.jar (or manually patch above files).

Note, barcode4j and itext are both referenced in JasperReports. Itext alone will suffice for barcodes with latest version (also with QR barcode which barcode4j doesn't support)

Regards Peter

Link to comment
Share on other sites

  • 3 months later...
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

You're right, JR requires iText 2.1.7 and doesn't work with 5.x.  The matter has been raised before, see http://jasperforge.org/projects/jasperreports/tracker/view.php?id=5183 and http://jasperforge.org/projects/jasperreports/tracker/view.php?id=5468

The problem is not changing the JR PDF exporter to use iText 5.x classes, but that iText 5.x is licensed under AGPL, which is not compatible with JR's license (LGPL).  Due to that, for the moment at least you'll need to use JR with iText 2.1.7.

I'm not familiar with iText's barcode support.  We don't have support for it in JR, please log it as a feature request if you'd like to have that.

Regards,

Lucian

Link to comment
Share on other sites

Thanks Lucian, barcode4j is in Jasper Reports but development is pretty long time stopped ago. QR code support is missing in these versions but alternative is Zxing (and this is also added in later iText versions but with AGPL license)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...