Some test text!

Layers (OCGs)


Get started

With the introduction of PDF version 1.5 came the concept of Layers. Layers, or as they are more formally known as Optional Content Groups (OCGs), refers to sections of content in a PDF document that can be selectively viewed or hidden by document authors or consumers. This capability is useful in CAD drawings, layered artwork, maps, multi-language documents etc.

PDFTron SDK benefits include:

  • Extract and render PDF layers (also known as Optional Content Groups, or OCGs)
  • A simple to use API to add layers in new PDF documents
  • Ability to remove or modify/edit existing PDF layers (OCGs)

linkGet started

Adding a layer
To add a PDF layer in a new document.

Samples related to layers.

APIs related to layers.

Get the answers you need: Support


Get started