We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Bookmarks are not saved

Thread ID:





55645 Feb 2,2007 02:27 AM UTC Feb 5,2007 01:58 PM UTC WinForms 3
Tags: PDF
Asked On February 2, 2007 02:27 AM UTC

The following code should add a new bookmark to an existing document. However, when I open the saved document in Acrobat 7, no bookmarks appear.

PDFDocument doc = new DFDocument(@"C:\oldfile.pdf");
IPDFPage page = doc.Pages[1];
IPDFDestination target = doc.CreateDestination(page);
IPDFBookmark mark = doc.Bookmarks.Add("01 Feb 2007", target);


Can you help?

Dhivya K [Syncfusion]
Replied On February 2, 2007 01:44 PM UTC

Hi Rbluoin,

Thank you for your interest in Essential PDF.
Thanks for the code snippet. I was able to reproduce the issue. Currently it is not possible to insert the bookmarks into an existing document. However, as a workaround, we can copy the pages of the existing document and add them in a new PDFDocument object and then add bookmarks for this document.

Here is a sample for your reference:

Please take a look into it and let me know if it helps you.


Replied On February 2, 2007 04:39 PM UTC

Thanks for your response. However, your code does not preserve bookmarks from the first document. In fact, when you open an existing PDF document, the PDFDocument.Bookmarks property is empty even though there are bookmarks in the document.

This is a bug. Please suggest a work-around.


Dhivya K [Syncfusion]
Replied On February 5, 2007 01:58 PM UTC

Hi Richard,

Could you please refer the following thread regarding this issue?



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon