Yes my code contains a "reader.removeUnusedObjects();" but it seems so,
that this method can not remove my unecessary objects.
The PDF-analyzer "PDFVole" lists many "global objects" under the entry
"object reference table".
My example PDF contains 2537 entries under "global objects". After
optimizing the PDF with Ghostscript only 50 objects listed as "global
objects".
2012/4/25 AJ Weber <[email protected]>
> I know PdfReader has a .removeUnusedObjects() method. Maybe try that?
>
> -AJ
>
>
>
> On 4/25/2012 8:48 AM, Carsten Stuplich wrote:
>
> Hello,
>
> I use Pdfcopy / PdfSmartcopy in order to split a PDF-File.
> I also can confirm the problem from the following post:
>
> http://thread.gmane.org/gmane.comp.java.lib.itext.general/61614/focus=61615
>
>
>
> After splitting some pages (with one image on every page) into a new file,
> the size of the new file is very large.
> After analyzing the new file with itextrups i can confirm that the file
> contains a lot of xobjects (from subtype "form"). Most of this xObjects
> belongs to non "splitted" pages and are unnecessary in the new file.
>
> Does there exist a function to remove this unecessary xobjects? - At this
> moment I use ghostscript in order to shrink the file. This works fine but
> is vey very slow for documents with thousend pages.....
>
>
> Carsten
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>
>
>
> _______________________________________________
> iText-questions mailing
> [email protected]https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> iText(R) is a registered trademark of 1T3XT BVBA.
> Many questions posted to this list can (and will) be answered with a
> reference to the iText book: http://www.itextpdf.com/book/
> Please check the keywords list before you ask for examples:
> http://itextpdf.com/themes/keywords.php
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> iText(R) is a registered trademark of 1T3XT BVBA.
> Many questions posted to this list can (and will) be answered with a
> reference to the iText book: http://www.itextpdf.com/book/
> Please check the keywords list before you ask for examples:
> http://itextpdf.com/themes/keywords.php
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php