pdftools_toolbox.pdf.ocg_state

Classes

OcgState(value)

The ocg state affects the visibility of content elements that depend on it.

class pdftools_toolbox.pdf.ocg_state.OcgState(value)[source]

Bases: IntEnum

The ocg state affects the visibility of content elements that depend on it.

Variables:
  • OFF (int) – OCG is OFF.

  • ON (int) – OCG is ON.

OFF = 0
ON = 1