JasperReports可以在报告中包含pdf吗?

时间:2022-01-15 00:13:10

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

是否可以在JasperReport中包含现有的pdf文件?

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...

我们确实希望在不重新生成现有报告的情况下将新数据附加到现有报告中。我们将出口回pdf。我正在考虑使用iText的PdfCopy合并两个pdf,但希望JasperReports可能有一个更简单的方法......

1 个解决方案

#1


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

我认为你不能在JasperReports中做到这一点,但在iText中它会相当简单。

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

生成JasperReport,然后使用PdfCopy将新报告附加到原始报告(反之亦然)。

#1


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

我认为你不能在JasperReports中做到这一点,但在iText中它会相当简单。

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

生成JasperReport,然后使用PdfCopy将新报告附加到原始报告(反之亦然)。