Support of PDF Optional Content Groups (Layers)
![](https://secure.gravatar.com/avatar/13bc5842f0b785acdb8f02c38b78439d.jpg?s=120&d=mm&r=g)
Hi, Has ConTeXt any support for producing a PDF with "optional content groups" (OCGs)? In Adobe's jargon OCGs are also known as "layers" (not to confuse with layers in ConTeXt). See Section "4.10.2 Making Graphical Content Optional" in the PDF Reference 1.7 available at http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/pdf/pdfs/pdf_referenc... I cannot find anything on the Wiki nor in the ntg-context emails and grepping through the source code for "ocg" does not give reasonable results. Cheers, Christoph
![](https://secure.gravatar.com/avatar/5955e8e90611e77ccbfc7721b6112027.jpg?s=120&d=mm&r=g)
On 11/16/2014 08:47 PM, Christoph Reller wrote:
Hi,
Has ConTeXt any support for producing a PDF with "optional content groups" (OCGs)?
In Adobe's jargon OCGs are also known as "layers" (not to confuse with layers in ConTeXt). See Section "4.10.2 Making Graphical Content Optional" in the PDF Reference 1.7 available at http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/pdf/pdfs/pdf_referenc...
I cannot find anything on the Wiki nor in the ntg-context emails and grepping through the source code for "ocg" does not give reasonable results.
Hi Christoph, I think ConTeXt has that feature, although I never used it. http://www.ntg.nl/pipermail/ntg-context/2014/078701.html may be what you need. I hope it helps, Pablo -- http://www.ousia.tk
![](https://secure.gravatar.com/avatar/b79687264c3e06cba13b54d05b12a9f5.jpg?s=120&d=mm&r=g)
Am 16.11.2014 um 20:47 schrieb Christoph Reller
: Hi,
Has ConTeXt any support for producing a PDF with "optional content groups" (OCGs)?
In Adobe's jargon OCGs are also known as "layers" (not to confuse with layers in ConTeXt). See Section "4.10.2 Making Graphical Content Optional" in the PDF Reference 1.7 available at http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/pdf/pdfs/pdf_referenc... http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/pdf/pdfs/pdf_referenc...
I cannot find anything on the Wiki nor in the ntg-context emails and grepping through the source code for "ocg" does not give reasonable results.
You have to look for \defineviewerlayer and \startviewerlayer. Wolfgang
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
On 11/16/2014 9:52 PM, Wolfgang Schuster wrote:
Am 16.11.2014 um 20:47 schrieb Christoph Reller
mailto:christoph.reller@gmail.com>: Hi,
Has ConTeXt any support for producing a PDF with "optional content groups" (OCGs)?
In Adobe's jargon OCGs are also known as "layers" (not to confuse with layers in ConTeXt). See Section "4.10.2 Making Graphical Content Optional" in the PDF Reference 1.7 available at http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/pdf/pdfs/pdf_referenc...
I cannot find anything on the Wiki nor in the ntg-context emails and grepping through the source code for "ocg" does not give reasonable results.
You have to look for \defineviewerlayer and \startviewerlayer.
A quick test if your pdf viewer supports is is: \showlayoutcomponents \starttext \input tufte \stoptext ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (4)
-
Christoph Reller
-
Hans Hagen
-
Pablo Rodriguez
-
Wolfgang Schuster