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. Image for the cookie policy date
close icon

How to insert bookmark on specific level into pdf document

I have an existing pdf document and want to modify bookmark for it.

For example, current bookmark is like this:

-Chapter 1
--Section 1
----Page 1
----Page 2
------Paragraph 3
----Page 3
-Chapter 2
-Index

I want to insert one more bookmark at the very top, and bookmark will be like this:

-PDFwithBookmarkChanged
--Chapter 1
---Section 1
-----Page 1
-----Page 2
-------Paragraph 3
-----Page 3
--Chapter 2
--Index

OR insert one new bookmark between "Page 1" and "Page 2", and new bookmark will be like this:

-Chapter 1
--Section 1
----Page 1
--Section2
----Page 2
------Paragraph 3
----Page 3
-Chapter 2
-Index

Thank you.

1 Reply

AG Angappan G Syncfusion Team June 8, 2010 12:14 PM UTC

Hi Jason,

thank you for your interest in Essential Studio.

It is not possible to insert the new bookmark at the top of any level in the bookmark tree but we can manipulate it, we can insert the new bookmark element at any position ( between bookmarks of similar hierarchy) other than top of every level by using "PdfBookmark.Insert()" function. Please refer the sample in the below location for inserting new bookmarks at specific level.

Sample Link:
http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=94823-99264482.zip

Please let us know if you have any queries.

Regards,
Angappan.

Loader.
Live Chat Icon For mobile
Up arrow icon