Remove PDF Outlines Using JavaScript
Creating, editing, or removing document outlines is available when using the Web SDK in standalone operational mode.
With PSPDFKit, you can delete PDF outlines using the instance.setDocumentOutline
method. The example below shows how to do it by setting the outline to an empty PSPDFKit.Immutable.List([])
:
await instance.setDocumentOutline(PSPDFKit.Immutable.List([]));