Hello, I would like to ask if there is a way to use the latest JasperReport Library to create a pdf in a Spring Boot project.
I have noticed that the version 6.20.0 does not have the following dependency
In order to fix this error, I had to set the dependencies in the POM file, as follows:
<dependency> <groupId>net.sf.jasperreports</groupId> <artifactId>jasperreports</artifactId> <version>6.20.0</version> <exclusions> <exclusion> <groupId>com.lowagie</groupId> <artifactId>itext</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>com.lowagie</groupId> <artifactId>itext</artifactId> <version>2.1.7</version> <scope>compile</scope> </dependency>
As you can see above, I had to use an older version of itext 2.1.7
Furthermore, itext has moved to itextpdf.
Assume that I would like to use the latest versions of JasperReports (6.20.0) and itextpdf (220.127.116.11). As soon as I try to generate the pdf file, I get the following error:
Caused by: java.lang.ClassNotFoundException: com.lowagie.text.DocumentException
I read in this thread, that I have to use itext 2.1.7: https://community.jaspersoft.com/questions/986581/jasperreports-621-clas...
Is there a possibility that this issue could be fixed in the future?
Thank you in advance!