Adriano - I think you are asking the wrong question because it doesn't make sense.
When you read/parse a PDF, there can only be ONE Document Catalog object in the active PDF document. The reason is because that object is determined by the value of the /Root key in the CURRENT Trailer. Once you have that object, it will start your "tree walk" to all other objects in the current/active PDF. Leonard On 3/11/13 5:16 PM, "adriano" <asanton...@gmail.com> wrote: >I realize that I was not clear when asking my question and making an >example. >I am not referring to regular PDF documents, but intentionally altered >ones >made up by the bad guys in order to try and cause problems to some >application. I am aware that a PDF document may have more than one >/Catalog >if it has been revised. >So what I was asking about is how to find suspicious objects in a PDF, >like >e.g. seemingly unused or duplicated ones of certain types (like a double >/Catalog when the document has no revisions) .... >But may be I am still asking the wrong questions in the wrong place... > > > >-- >View this message in context: >http://itext-general.2136553.n4.nabble.com/Duplicate-indirect-objects-tp46 >57759p4657791.html >Sent from the iText - General mailing list archive at Nabble.com. > >-------------------------------------------------------------------------- >---- >Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester >Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the >endpoint security space. For insight on selecting the right partner to >tackle endpoint security challenges, access the full report. >http://p.sf.net/sfu/symantec-dev2dev >_______________________________________________ >iText-questions mailing list >iText-questions@lists.sourceforge.net >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 ------------------------------------------------------------------------------ Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the endpoint security space. For insight on selecting the right partner to tackle endpoint security challenges, access the full report. http://p.sf.net/sfu/symantec-dev2dev _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net 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