| PDFsharp & MigraDoc Forum https://forum.pdfsharp.net/ | |
| Can I avoid the root bookmark? https://forum.pdfsharp.net/viewtopic.php?f=2&t=2130 | Page 1 of 1 | 
| Author: | przemek123 [ Wed Sep 05, 2012 3:34 pm ] | 
| Post subject: | Can I avoid the root bookmark? | 
| 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   | |
| Author: | przemek123 [ Fri Sep 21, 2012 2:07 pm ] | 
| Post subject: | Re: Can I avoid the root bookmark? | 
| 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? | |
| Page 1 of 1 | All times are UTC | 
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ | |