PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sat Apr 27, 2024 12:36 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Fri Dec 18, 2009 1:15 pm 
Offline

Joined: Fri Dec 18, 2009 12:44 pm
Posts: 1
First post, thanks to all developers and contributors for a brilliant library!

I'm attempting to scan the outline of a Word 2007 created pdf document, store the page number that each bookmark reside on, and then remove the entire outline from the document.

Unfortuneatly pdfsharp doesn't recognize the outline (PdfDocument.Outlines.Count = 0), so I'm trying to remove it using PdfDocument.Internals.RemoveObject(PdfObject).

When I save the document, the dictionary is still there, and the outline is visible in Acrobat Reader. In other words it's not working.

BUT, if I have the pdf document im trying to modify and save open in Acrobat at the time I call PdfDocument.Save(filename), it generates an exception (like it should), if I now close Acrobat Reader, and continue on the exception, it saves and the outline dictionary is gone. The bookmark meny is also gone from Acrobat Reader.

Any clues? I suspect I'm not using RemoveObject() correctly...


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 376 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group