Hello all,
I am generating a multiple page report using itext. each page of this report is based on a Acroform. My users want this generation to be faster. I am detailing down the steps taken by me. Kindly let me know if the report generation can be faster.
- I read the acroform from the DB and cache it in memory.
- Create a PdfCopyFields object.
- I loop on the student list (each student has one page in the report.)
- Create a PDFReader and PDFStamper for the template.
- Extract the Acrofields from the template.
- Loop on the acrofields Fill each acro fields
- when all acrofields are filled, I close the stamper
- I create another PdfReader and call the addDocument method on the PdfCopyFields objects.
this is done for all students, and then I convert the documents to byte array and write in on the HTTP Response stream.
Can I improve this by following any other way of generating this report?
regards,
Abhishek.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions