PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

Cannot read bookmarks from existing pdf
https://forum.pdfsharp.net/viewtopic.php?f=2&t=1468
Page 1 of 1

Author:  mcrossland [ Wed Dec 08, 2010 4:53 pm ]
Post subject:  Cannot read bookmarks from existing pdf

Can anyone help. I can merge pdfs, and create bookmarks/outlines, child etc, on the new pdf, but I cannot find a way to read bookmarks from an existing pdf. Can pdfsharp do this. I saw the following code on the forum which I cannot get to work, but I am not a coding wiz:

PdfDictionary pol = (PdfDictionary)inputDocument2.Internals.Catalog.Elements.GetObject("/Outlines");
Console.WriteLine(pol.Elements.GetString("/Title"));

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/