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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Rearrange Pdf Bookmark

Thread ID:





144028 Apr 15,2019 11:43 AM UTC Apr 16,2019 04:49 PM UTC WinForms 1
Tags: PDF
Asked On April 15, 2019 11:43 AM UTC

I want to re-arrange my pdf bookmark name. but i cant find solution to swap bookmark name. Can anyone help me?
In advance, Thank you.

Meikanda Nayanar [Syncfusion]
Replied On April 16, 2019 04:49 PM UTC

Hi Marcus,


Greetings from Syncfusion.


Please find the code snippet for swapping the bookmark name in the PdfLoadedDocument:


//Loads the PDF document.

PdfLoadedDocument document = new PdfLoadedDocument(DataPathOutput + "Output.pdf");


//Gets all the bookmarks.

PdfBookmarkBase bookmarks = document.Bookmarks;


//Gets the first two bookmark and its Title.

PdfLoadedBookmark bookmark1 = bookmarks[0] as PdfLoadedBookmark;

string title1 = bookmark1.Title;


PdfLoadedBookmark bookmark2 = bookmarks[1] as PdfLoadedBookmark;

string title2 = bookmark2.Title;


//Swapping the title name of the first two bookmarks

bookmark1.Title = title2;

bookmark2.Title = title1;


//Saves the document




Sample for the same can be downloaded from below link:



Please let us know if you need any further assistance in this.





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

Live Chat Icon For mobile
Live Chat Icon