Flattening only moves the field appearances from the acroform to the
page content as xobjects. The pdf doesn't get bigger nor smaller. iText
can't do more than this. To do what postscript does would require a
content parser to insert the xobject with the appearances inside the
content stream with all the font merging, etc that it implies.

Best Regards,
Paulo Soares 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Peter Soelter
> Sent: Friday, November 12, 2004 9:41 AM
> To: [EMAIL PROTECTED]
> Subject: [iText-questions] Size of flattened PDFs
> 
> Hi to all,
> after flattening a PDF with lots of Fields (in our case 1200) the 
> resulting PDF is quite big.
> For every flattened field something like this is generated by iText: 
> 
>       1414 0 obj <</Matrix [1 0 0 1 0 
> 0]/Resources<</Font<</Helv 1918 0
> R>>/ProcSet [/PDF /Text /ImageB /ImageC
> /ImageI]>>/Subtype/Form/Filter/FlateDecode/Length 84/FormType 
> 1/BBox[0 0 74
> 13]/Type/XObject>>stream
>               ...stream-data following
>       endstream
>       endobj
>       
> If you save a sample flattened PDF (1200 Fields, 1.1 MB) with 
> Acrobat Full-Version to a Postscript-File (770 KB) and then 
> convert it back again to PDF with Distiller, the resulting PDF is 
> only about 80 KB, but looks identical to 
> the flattened PDF!
> 
> Is there any way to optimize the resulting PDF regarding the size 
> with iText?
>      
> Best regards,
> Peter
> 
> -- 
> Geschenkt: 3 Monate GMX ProMail + 3 Top-Spielfilme auf DVD
> ++ Jetzt kostenlos testen http://www.gmx.net/de/go/mail ++
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Sybase ASE Linux Express Edition - download now for FREE
> LinuxWorld Reader's Choice Award Winner for best database on Linux.
> http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 


-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88&alloc_id065&op=click
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to