JavaScript library for PDF layers (OCGs)
Nutrient Web SDK includes support for toggling the visibility of optional content group (OCG) layers. It offers developers a robust API for programmatic display of OCG layers, as well as a beautiful UI for users to enable and disable layer visibility.
Working with PDF layers (OCG layers) is available when using Web SDK in the browser. For more information, refer to the operational mode guide.
Guides for OCG layers
Introduction to PDF layers (OCGs)
Learn about PDF OCG layers
Show and hide
How to programmatically hide, show, or lock PDF OCG layers
Built-in UI
Learn how end users can toggle PDF OCG layers with the built-in UI
Start your free trial for unlimited access and expert support.