Is there a way to remove bookmarks from a PDF? I'm combining several PDFs using a MergeDocument, and the bookmarks no longer serve any purpose, so I'd like to have them stripped from the finished PDF.
Strip Bookmarks
Re: Strip Bookmarks
Support · Aug 15, 2006Hello,
You will have to set the MergeOptions.Outlines property to false in order to remove the bookmarks from an existing PDF document when merging. Following is the sample code to remove the bookmark from the PDF you sent over:
VB.NET Code:
Dim options As MergeOptions = New MergeOptions()
options.Outlines = False
Dim MyDocument As MergeDocument = New MergeDocument("Test.pdf", options)
MyDocument.DrawToWeb("DynamicPDF.pdf")
C# Code:
MergeOptions options = new MergeOptions();
options.Outlines = false;
MergeDocument document = new MergeDocument("Test.pdf", options);
document.DrawToWeb("DynamicPDF.pdf");
Thanks,
ceTe Software Support Team