PDF Layer Viewer
Inspect every Optional Content Group (OCG layer) in any PDF directly in your browser. The PDF layer viewer reads the full layer structure - names, default visibility, intent settings, and internal OCG IDs - and lets you toggle individual layers to explore what content each one controls. No server upload, no signup required.
About PDF Layers (OCGs)
Optional Content Groups (OCGs) are the technical name for PDF layers. They are commonly used in CAD drawings, print-ready files, maps, and multi-language documents to show or hide content without removing it from the file.
Upload a PDF to inspect its layer structure
Upload a PDF to inspect its layer structure
Why Use Our PDF Layer Viewer?
Inspect All Optional Content Groups
Our PDF layer viewer reads every Optional Content Group (OCG) embedded in your PDF and displays the full layer structure - including each layer's name, default visibility state, intent (View / Design / Print), and internal OCG ID. Toggle any layer to explore what content it controls.
Secure PDF Layer Viewer Online
Your PDF never leaves your device. The PDF layer viewer runs 100% in your browser using pdfjs-dist - no server upload, no cloud processing, and no data retention. Inspect technical drawings, legal documents, and confidential files with complete privacy.
PDF Layer Viewer - No Installation
Inspect PDF layers directly in your browser without installing Adobe Acrobat, Illustrator, or any other desktop software. The PDF layer viewer works on any modern browser on Windows, Mac, iOS, or Android - no plugins required.
Auto-Read on Upload with Toggle Controls
As soon as you upload a PDF, the layer viewer instantly reads the OCG structure and displays all layers with their visibility state. Toggle individual layers, show all, hide all, or reset to the PDF's original defaults - all in real time.
When to Use the PDF Layer Viewer
Technical Drawings and CAD PDFs
CAD-exported PDFs from AutoCAD, Revit, and similar tools use PDF layers to separate annotations, dimensions, structural elements, and mechanical systems. Use the PDF layer viewer to inspect which layers are present and understand the drawing structure before printing or sharing.
Print-Ready Design Files
Print-ready PDFs from InDesign, Illustrator, and Affinity Publisher often contain layers for crop marks, bleed guides, spot colors, and language variants. Use the PDF layer viewer to verify layer names and intent settings before sending files to a print service.
Multi-Language and Versioned Documents
PDF forms and publications sometimes use OCG layers to store multiple language translations or document versions in a single file. The PDF layer viewer reveals each language layer, its default visibility, and whether it is set to View or Print intent.
Legal and Regulatory Documents
Some regulatory PDFs use layers to reveal or hide redacted content, annotations, or compliance stamps. Use the PDF layer viewer to verify that all expected layers are present and that hidden layers contain no sensitive content that should have been removed.
Debugging Hidden PDF Content
If a PDF displays differently on different devices or when printed, hidden OCG layers may be the cause. The PDF layer viewer shows every layer including those that are hidden by default - helping you identify content that exists in the file but is not shown during normal viewing.
PDF Development and QA
Developers building PDF generation pipelines and QA engineers verifying PDF output can use the PDF layer viewer to confirm that OCG layers are correctly named, assigned to the right intent, and set to the expected default visibility state in the generated file.
Understanding PDF Layers (Optional Content Groups)
What are PDF Layers (OCGs)?
PDF layers - technically called Optional Content Groups (OCGs) - are a PDF specification feature that allows content to be shown or hidden without modifying the file. Each OCG has a name, a default visibility state, and an optional intent that specifies whether the layer is intended for screen viewing, printing, or design purposes. OCGs were introduced in PDF 1.5 and are widely used in CAD drawings, print-ready design files, multi-language publications, and interactive forms. Our PDF layer viewer reads the OCG structure from any PDF and displays it as an interactive table.
How Our PDF Layer Viewer Works
- 1Upload your PDF:Drop or select any PDF. The PDF layer viewer instantly calls pdfjs-dist's
getOptionalContentConfig()API to read the full OCG structure - including every layer name, default visibility state, intent setting, and internal OCG ID. Auto-read happens on upload with no extra button click needed. - 2Inspect the layer table:All OCGs are displayed in a table showing the layer name, default visibility (from the PDF), intent (View / Design / Print), and the internal OCG identifier. Click the eye icon on any row to toggle its visibility state. A "modified" badge highlights layers where you have changed the state from the PDF default.
- 3Use the bulk controls:Use "Show All", "Hide All", or "Reset to PDF Defaults" to quickly change the visibility of all layers at once. This is a read-only inspection tool - no changes are written back to the PDF file.
What the PDF Layer Viewer Shows
- Layer Name:The human-readable name assigned to the OCG by the document author - typically a meaningful label like "English Text", "Dimensions", or "Layer 3".
- Default Visibility:Whether the OCG is set to visible or hidden by default when the PDF is first opened - as specified in the PDF's OCG configuration dictionary.
- Intent: The intended usage of the layer - View (shown on screen), Design (for authoring tools only), or Print (used only when printing). Not all PDFs specify intent.
- OCG ID: The internal object identifier used to reference this Optional Content Group within the PDF file structure - useful for developers debugging PDF generation pipelines.
Privacy, Compatibility & Notes
The PDF layer viewer processes your file entirely in your browser - your PDF never leaves your device. Not all PDFs contain layers: simple documents created from Word, Google Docs, or basic PDF printers typically have no OCG structure, and the tool will report "no layers found" for those files. PDFs with layers are most commonly produced by Adobe Illustrator, InDesign, AutoCAD, Revit, and similar professional authoring tools.
Related Tools
JPG to PDF
Convert JPG images to PDF instantly - Free online JPG to PDF converter
PNG to PDF
Convert PNG images to PDF instantly - Free online PNG to PDF converter
SVG to PDF
Convert SVG vector graphics to PDF - Free online SVG to PDF converter
BMP to PDF
Convert BMP bitmap images to PDF instantly - Free online BMP to PDF converter
Frequently Asked Questions About PDF Layer Viewer
PDF layers are called Optional Content Groups (OCGs) in the PDF specification. They allow content to be shown or hidden without modifying the file. Each OCG has a name and a default visibility state. Layers are commonly used in CAD drawings, print-ready design files, multi-language publications, and interactive PDFs.
Most simple PDFs - created from Word, Google Docs, or basic PDF printers - contain no Optional Content Groups. "No layers found" means the file has no OCG structure, which is completely normal. PDFs with layers are typically produced by professional tools like Adobe Illustrator, InDesign, AutoCAD, or Revit.
Completely. The PDF layer viewer runs 100% in your browser using pdfjs-dist. Your PDF is never uploaded to any server, never stored remotely, and never transmitted over the network. This makes it safe for confidential technical drawings, legal documents, and proprietary design files.
Yes, 100% free. No signup, no subscription, no file size limits, and no restrictions on how many PDFs you inspect. Our PDF layer viewer online is free forever.
No. The PDF layer viewer is a read-only inspection tool. Toggling the eye icon changes the displayed visibility state in the viewer only - it does not modify the PDF file in any way. The visibility state resets when you upload a new file or reset to defaults.
The intent field specifies the intended usage of a layer according to the PDF specification. "View" means the layer is intended to be shown on screen. "Design" means it is only relevant in authoring tools. "Print" means it is used only when printing, not necessarily when viewing on screen. Not all PDF layers include an intent - if absent, the tool shows a dash.
The PDF layer viewer shows the document-level OCG structure, which includes all layers defined in the PDF. The PDF specification does not always track which specific pages reference each OCG - layers may apply to all pages or only certain pages depending on how the PDF was authored. For page-by-page layer inspection, dedicated desktop tools like Adobe Acrobat are required.
The OCG ID is the internal object identifier used to reference the Optional Content Group within the PDF file structure. It is typically a number like "45R" or a similar PDF object reference. This value is useful for developers debugging PDF generation pipelines or inspecting PDF internals with tools like qpdf.