New Product Launch - BoldDesk !
Introducing help desk ticketing software.
New Product LaunchBoldDesk: Help desk ticketing software starts at $10 for 3 agents.
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 as PdfLoadedBookmark;
string title1 = bookmark1.Title;
PdfLoadedBookmark bookmark2 = bookmarks 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.