Jasper Reports Save PDF to Disk

I am using Jasper reports in Spring. Can I let Jasper generate a PDF report and save it to the file system?

+3
source share
2 answers

Of course. In fact, JasperReports includes an export option for this. Basically, you are setting up your exporter, but now you are doing it, and set the parameter to the JRExportParameter.OUTPUT_FILE_NAMEname of the file in which you want to save the report, and then export the report in accordance with the normal one.

+3
source

You can write bytes received from JRPdfExporter to a local file instead of a response stream. The exact solution will depend on how you use Jasper in your application.

0
source

All Articles