Can JasperReports include a pdf in a report?

2019-06-06 15:58发布

问题:

Is it possible to include an existing pdf file in a JasperReport?

We really want to append new data to an existing report with out regenerating the existing report. We will be exporting back to pdf. I'm looking at using iText's PdfCopy to merge two pdfs, but was hoping JasperReports might have an easier way...

回答1:

I don't think you could do that in JasperReports, but it would be fairly simple in iText.

Generate the JasperReport, and then use PdfCopy to append the new report to the original (or vice-versa).