It appears that I can not delete all existing bookmarks in a pdf with out saving after the delete then saving again after the add. Is that expected?
Below does not remove the existing bookmarks:
//Delete the existing bookmarks and replace with ours
_pdfBookmarkEditor = new Aspose.Pdf.Kit.PdfBookmarkEditor();
Yes, that is the normal behavior of the component. You’ll have to save the output after deleting the bookmarks and then add the new bookmarks.
If you have any further questions, please do let us know.