Remove PDF outlines using JavaScript
![]()
Creating, editing, or removing document outlines is available when using Web SDK in the browser. For more information, refer to the operational mode guide.
With Nutrient Web SDK, 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([]));