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.
  1. I read the acroform from the DB and cache it in memory.
  2. Create a PdfCopyFields object.
  3. I loop on the student list (each student has one page in the report.)
  4. Create a PDFReader and PDFStamper for the template.
  5. Extract the Acrofields from the template.
  6. Loop on the acrofields  Fill each acro fields
  7. when all acrofields are filled, I close the stamper
  8. 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to