-
Notifications
You must be signed in to change notification settings - Fork 8
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
output a list of JasperPrint object to PDF got blank pages before each item #7
Comments
The problem is caused by the superfluous It needs to be fixed in the core JasperReports library by removing that call. |
PS: The "classic" PDF producer is not affected because the |
Hi @dadza I just downloaded the version 6.20.0 of the Jasperreports library source code and commented the line 978 and later also line 1013 (both are |
Can you double check that you are indeed running the code you modified? E.g. put a System.out/err statement and confirm that the line is printed. If the problem persists after commenting |
@dadza Many thanks for your help! |
I have a report which composed of different Jasperreport templates, e.g. template1 and template2, therefore we use ArrayList to collect the JasperPrint Objects and generate the report into PDF like this:
The above code will generate the PDF file with an extra blank page before each items in the ArrayList, i.e. before contents of template1 and before contents of template2; on commenting out the itext7 support code (use itext2), the output will not have the extra blank pages; is there any way to instruct the ModernPdfProducerFactory / itext7 to NOT outputting the extra blank pages?
The text was updated successfully, but these errors were encountered: