Viewer Layers

From Wiki
Revision as of 10:21, 28 July 2018 by Hraban (talk | contribs) (NEW)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

< Layers | Visuals | Presentations >

PDF has a concept of layers that you can enable and disable (at least in a few viewers). This has nothing to do with ConTeXt’s Layers.

There’s no other documentation yet, maybe have a look into the source attr-lay.mkiv.

\defineviewerlayer[Plane]
\setupviewerlayer[Plane][
  state=start,
  visible=no, % initially
  title=Test,
  %tag=, % don’t know?
  editable=yes, % in Acrobat Pro?
  printable=yes,
  export=yes, % exportable in xml?
  scope=global, % or local
]

\starttext
\input tufte

\startviewerlayer[Plane]
{\bfa TOP SECRET}
This information is on a different plane of existence.
\stopviewerlayer

\input knuth
\stoptext