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

NullReferenceException while accessing outlines
https://forum.pdfsharp.net/viewtopic.php?f=2&t=12
Page 1 of 1

Author:  case [ Mon Oct 30, 2006 2:42 pm ]
Post subject:  NullReferenceException while accessing outlines

Hi,

I'm trying to access the bookmarks of a pdfdocument and i'm geting a NullReferenceException. What can I do?

Code:
         string file = "document.pdf"; //document with bookmarks
         PdfDocument doc = PdfReader.Open(file);
         doc.Outlines;   //this results in a NullReferenceException!


Thanks for your replys,

case.

Author:  Stefan Lange [ Mon Oct 30, 2006 7:06 pm ]
Post subject: 

Hello,

This is not yet implemented. PDFsharp was originally designed only to create PDF files, not to modify its existing structure.

Reading Outlines from an existing PDF file is on the to-do list. Reading Annotations e.g. already works.

Regards
Stefan Lange

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