Can existing bookmarks be removed from the outline tree of a document using iText 7? The PdfOutline class has methods to add outlines, but there are none to remove one.
I tried selectively copying outlines to a list, removing all the existing outlines with PdfDocument.getCatalog.remove(PdfName.Outlines)
, and then repopulating the document's outline with the elements of my list. The new outline came out the way I wanted it, but when I clicked on any of the bookmarks, they took me to incorrect locations within the document.