On 27/09/2011 13:11, William Bell wrote:
The object I am interesting in is the <<Linearization>> dictionary.
This is added to the file when the file is Saved As linearized but is
not referenced anywhere in the file. Hence, my trying the brute force
method!
See below for extract from PDF file, code and its output.
The code returns object 24 (<<Linearization>>) as null.
My question is simple - is there any way I can retrieve the
<<Linearization>> dictionary as an object (direct or indirect)? Or,
do I have to treat the file as a stream and search for the term
'<<Linearization>>' and deal with its values manually? [Note: no
problem to do this but it would be nicer to deal with this dictionary
as an object if possible]
Do you have a PDF I can take a look at.
Normally, each object can be found somewhere in the XRef table.
A linearized PDF has more than one XRef table.
I'd like to see in which XRef table that object can be found.
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
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