Re: [NTG-context] Support of PDF Optional Content Groups (Layers)
On 11/17/2014 13:43 PM, Hans Hagen wrote:
On 11/17/2014 11:51 AM, Christoph Reller wrote:
Is there any way to construct "Set-OCG-State Actions" with ConTeXt? (See Section 8.5 Actions in the PDF Reference.) I admit that this is an advanced feature of PDF and that most viewers apart from the Adobe Reader are not capable of handling OCGs correctly.
I'm not sure what you mean but with the \goto command you can do a lot, including sequences of actions that enable/disable layers and so (often these things are done via javascript actions).
Thank you Hans for the pointer to \goto. Unfortunately, javascript is not suitable for my purpose because the PDF will be converted to PDF/A2. I want to switch on and off OCGs but with Set-OCG-State actions. Even if this is beyond the capabilities of ConTeXt, it is nice to know that there is a javascript-based solution. Christoph
Am 19.11.2014 um 21:19 schrieb Christoph Reller
: On 11/17/2014 13:43 PM, Hans Hagen wrote:
On 11/17/2014 11:51 AM, Christoph Reller wrote:
Is there any way to construct "Set-OCG-State Actions" with ConTeXt? (See Section 8.5 Actions in the PDF Reference.) I admit that this is an advanced feature of PDF and that most viewers apart from the Adobe Reader are not capable of handling OCGs correctly.
I'm not sure what you mean but with the \goto command you can do a lot, including sequences of actions that enable/disable layers and so (often these things are done via javascript actions).
Thank you Hans for the pointer to \goto. Unfortunately, javascript is not suitable for my purpose because the PDF will be converted to PDF/A2. I want to switch on and off OCGs but with Set-OCG-State actions. Even if this is beyond the capabilities of ConTeXt, it is nice to know that there is a javascript-based solution.
Can you show a example for this. At the moment you can disable layers when the document is printed. Wolfgang
participants (2)
-
Christoph Reller
-
Wolfgang Schuster