GaneshPrakhya wrote:

>Hi Bruno,
>
>The example you suggested is working fine for me. However, the targent
>document was around 4MB in size with 100 pages. 
>
Yes, that's what I meant when I wrote: "There are different ways to 
achieve this. The most efficient way, would be to retrieve the 
coordinates of the fields in an onOpenDocument, to add the flattened 
form in an onStartPage event, and to add the data using a static 
ColumnText method."
If you add the flattened form in an onStartPage event, the data of the 
'template' is added only once. This way the filesize is reduced drastically.

>I tried the samething with
>same template using PDFLib, the document PDFLib created with 100 pages was
>around 150KB. Is there any approach to reduce the size of the document. I
>guess the size is due to copying of documents over many pages in the case of
>
I have separate book examples that demonstrate the separate steps in the 
process described above, but I still have to make an example that 
combines everything.
Maybe I'll find some time this afternoon. If I do, I'll add it to this 
page: http://itext.ugent.be/articles/eid-pdf/ and I will let you know 
through the mailinglist.
br,
Bruno

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to