Skip to content
Guides

Overview

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.

Benefits of ComPDFKit PDF Layers

  • Export and Render: Export and render PDF layers (also known as Optional Content Groups, or OCGs)
  • Modify: Support modifying existing PDF layer (OCGs) properties.

Guides for Layers

  • Show/hide Layers

    To show or hide a PDF layer in a document.

  • Modify Layers

    Efficiently navigate to different locations in the document through simple code.

  • Export Layers

    Locate the position of keywords in the document, and copy or mark the text of interest.