1

In PDF everything is in the format of /name. I couldn't find a /Layers throughout the document. If I want to look for all the layers what key should I look for?

Tobias Kienzler
  • 25,759
  • 22
  • 127
  • 221
user5495269
  • 147
  • 7

1 Answers1

4

PDF layers are formally known as "Optional Content Groups" and are described in section 4.10 of the PDF Reference. The object types you should be looking for are 'OCG' for a simple group or 'OCMD' for a more complex dictionary.

Brian Duddy
  • 343
  • 1
  • 11