

If I cannot delete it from the Outlines collection then I want it to at least work How can I do for contacting support.


#Microsoft edge pdf bookmarks update#
This is why I want to update the bookmark.
#Microsoft edge pdf bookmarks code#
Is this because I delete the pages that relate to the bookmark? You will also see my commented out code where I originally wanted to delete the bookmarks… however that does not work as the bookmark does not get removed from the PDF Outlines. You can see my attempts to update the Action and Destination which do not work. bookmark.Destination = new GoToAction(pdf.Pages) bookmark.Action = new GoToAction(pdf.Pages) update the bookmark destination page (neither of these work - the bookmark still does not work) (bookmarkPageNo, attachmentPdfDocument.Pages) (bookmarkText) // this gives an error, refer to įor (var i = 1 i <= attachmentPageCount i++) bookmark.Delete() // this does not remove the bookmark from the outlines collection Delete the bookmark before deleting the pages ((XYZExplicitDestination)(bookmark.Destination)).PageNumber Var attachmentPdfDocument = new Document(filePath) Var filePath = Path.Combine(organisationFolder, attachment.FilePath) Var bookmark = GetBookmark(pdf, bookmarkText) var bookmarkText = GetBookmarkText(attachment, isForSnapshot) Unfortunately this does not work - clicking on the attachment bookmark does not navigate anywhere. My problem is that I want to update the bookmarks that I use to locate the insertion point for the attachments so that they will continue to work and take the user to the start of the inserted attachment. I’ve shown the code that I use to do this below. I do this by finding the bookmark, deleting the placeholder pages and then inserting the pages from the attachment. Later I use Aspose.PDF to open the PDF and merge in the attachments. In the Word document I add bookmarks and placeholder pages for PDF format “attachments” that will later be merged into the PDF version - so my Word document and PDF have blank pages where the attachments will later be merged in. I build a Word document with Aspose.Words and then create a PDF version from this by saving in PDF format from Aspose.Words.
