fiyov46807 Posted September 21, 2022 Share Posted September 21, 2022 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.maven repo: https://mvnrepository.com/artifact/net.sf.jasperreports/jasperreports/6.20.0I 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>[/code]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 (5.5.13.3). As soon as I try to generate the pdf file, I get the following error:Caused by: java.lang.ClassNotFoundException: com.lowagie.text.DocumentExceptionI read in this thread, that I have to use itext 2.1.7: https://community.jaspersoft.com/questions/986581/jasperreports-621-classes-import-comlowagieIs there a possibility that this issue could be fixed in the future? Thank you in advance! Link to comment Share on other sites More sharing options...
jgust Posted September 21, 2022 Share Posted September 21, 2022 Jaspersoft created the github repo https://github.com/Jaspersoft/jasperreports-pdf-lib7 for this. Link to comment Share on other sites More sharing options...
naresh1 Posted February 9 Share Posted February 9 Is there any other way to resolve above issue without using above github repo ? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now