On 7/03/2013 14:33, Paul Breslaw wrote: > > On 07/03/13 13:12, Leonard Rosenthol wrote: >> Paul - the problem I suspect is that your first element of that array >> should be an indirect object and NOT a page number. ISO 32000-1:2008, >> 12.3.2 > That's very interesting. > > Firstly, I should say it's not my array, rather it's the source code of > PdfAction from iText 5.3.5.
Did you read "iText in Action" page 202? PAGE NUMBERS VERSUS PAGE REFERENCES In listing 7.3, you retrieved information about named destinations using the SimpleNamedDestination class. This class uses reader.getNamedDestination() to get the named destinations. You could use this method too, but you’d get entries like this: US=[1 0 R, /XYZ, 36, 802, 0] AR=[210 0 R, /XYZ, 36, 802, 0] The values 1 0 R and 210 0 R aren’t page numbers but references to page dictionaries. There are no page numbers inside a PDF file. Pages are organized in a page tree, and their position in this tree defines the page number. When you create a link to an explicit destination using gotoLocalPage(), iText needs to translate the page number (for instance, page 19 to jump to the page with films from Argentina) to a reference (such as 210 0 R). ------------------------------------------------------------------------------ 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