I also tried SimpleNamedDestination.ExportToXML for http://examples.itextpdf.com/results/part1/chapter02/movie_links_1.pdf as a test and that worked and produced the list of named destinations so I think my code is OK:
Dim NaDests As New Hashtable NaDests = SimpleNamedDestination.GetNamedDestination(readDocument, False)SimpleNamedDestination.ExportToXML(NaDests , New System.IO.StreamWriter("dests.xml"), "ISO8859-1", False)
I tried both True and False and different combinations but always blank. PS I am still using the old 4.1.6 version of iTextSharp.-----Original Message----- From: 1T3XT BVBA
Sent: Tuesday, February 26, 2013 7:24 AM To: Post all your questions about iText hereSubject: Re: [iText-questions] Adding a destination anchor to an existing PDFpage
On 26/02/2013 0:16, HJT Research wrote:
Trying SimpleNamedDestination.ExportToXML(etc...) for the Word 2007 generated PDF gives an empty destination list so maybe Word isn't creating proper NamedDestinations and that is why.
That's strange. Are you sure there are named destinations? Maybe there are explicit destinations instead... Can you share the PDF? ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb _______________________________________________ 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
Word 2007 PDF with TOC.pdf
Description: Adobe PDF document
------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________ 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