For the complete documentation index, see llms.txt. This page is also available as Markdown.
Node.jsPDF/UAEditingViewing

PDF Layers Showcase Demo Code Sample

Requirements

These packages are required to use these features in production. Trial keys have unlimited access to all features

Web SDKLive demo

Easily enable or disable layers in PDF construction drawings.

This demo lets you:

  • Upload a PDF file of your construction drawings

  • Toggle individual layers (e.g., architectural, electrical) using Optional Content Groups (OCGs)

  • Edit layout and content directly within the PDF

Implementation steps

To add layer separation capability to a PDF with WebViewer: Step 1: Get started with WebViewer in your preferred web stack Step 2: Add the ES6 JavaScript sample code provided in this guide

Once you generate your license key, it will automatically be included in your sample code below.

spinner