Jump to content
We've recently updated our Privacy Statement, available here ×

Jasper report export to PDF in spring batch for multiple PDF


vikas.jadhav

Recommended Posts

I need to export jasper report to pdf in spring batch application.
Scenario: using one jasper report layout and text file (data) have multiple rows (consider each row for single(account)) used as a data to fill report. In spring batch application i have to create only one pdf for all rows(accounts). using exportReportToPdfFile() it will export all accounts at a time , however i have to use batch processing and need to write pdf row by row(accounts). Is there any way to do so?
I have checked with batch mode exporting where exporter loops through this list of reports and produces a single document from them. but what if we have millions of reports it wont be applicable.

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Yeah a single file of pdf no matter what the size is but the problem is not about size its about processing time. Spring Batch write data depend on chunk size so if I have 10 files and chunk size is 1 then it will write 10 times on same file with append. Export to pdf writes whole data into single file at once but i need to write one record at a time with append. Do we have any export to pdf to append the JasperPrint object or what else options do I have?

I have used list of jasperPrint object and then exporting it to export method but then it will be bulk processsing instead of record wise processing.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...