PDFsharp & MigraDoc Forum

PDFsharp - A .NET library for processing PDF & MigraDoc - Creating documents on the fly
It is currently Fri Oct 31, 2025 1:10 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules

Also see our new Tailored Support & Services site.



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Wed Sep 05, 2012 3:34 pm 
Offline

Joined: Wed Sep 05, 2012 3:27 pm
Posts: 4
Hi! I need to write a program, that can save all the bookmarks from the pdf file, and after some time, if they disappear, it should be able to restore them. In my pdf files there is no root bookmark. All the bookmarks are on the same "zero" level.

So I found pdfsharp library for windows, and I opened sample: "Bookmarks". I am using Visual Studio Express 2010, C#. I am a beginner...

Could you tell me how to add bookmarks without a root bookmark?

Greetings :)


Top
 Profile  
Reply with quote  
PostPosted: Fri Sep 21, 2012 2:07 pm 
Offline

Joined: Wed Sep 05, 2012 3:27 pm
Posts: 4
I solved this problem in some way.

I created a new project.

I opened pdf file, copied it page after page to another file. (I am opening with the method introduced in another thread, called CompatiblePdfReader.)

After copying old document to a new document, I am reading bookmarks from txt file (number of page - title). When reading, I am simply adding bookmarks to this new document, and there is no root bookmark in the new document.

It may be some bug, because in Bookmarks example - first bookmark appears as a root bookmark. In my new project such situation disappears. I dont know why?


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 88 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