|144028||Apr 15,2019 11:43 AM UTC||Apr 16,2019 04:49 PM UTC||WinForms||1|
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.
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.
This page will automatically be redirected to the sign-in page in 10 seconds.