From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/89280 Path: news.gmane.org!not-for-mail From: Christoph Reller Newsgroups: gmane.comp.tex.context Subject: Re: Support of PDF Optional Content Groups (Layers) Date: Wed, 19 Nov 2014 21:19:41 +0100 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1836086189==" X-Trace: ger.gmane.org 1416428445 27393 80.91.229.3 (19 Nov 2014 20:20:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Nov 2014 20:20:45 +0000 (UTC) To: ntg-context Original-X-From: ntg-context-bounces@ntg.nl Wed Nov 19 21:20:40 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XrBjw-0001uC-O3 for gctc-ntg-context-518@m.gmane.org; Wed, 19 Nov 2014 21:20:36 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0ABD5101FC for ; Wed, 19 Nov 2014 21:20:36 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id xF3R7NbQUlU1 for ; Wed, 19 Nov 2014 21:20:35 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 9219F10237 for ; Wed, 19 Nov 2014 21:20:09 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A3565101FC for ; Wed, 19 Nov 2014 21:20:05 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id yiYKJkrLwqDO for ; Wed, 19 Nov 2014 21:20:04 +0100 (CET) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id D09C2101FB for ; Wed, 19 Nov 2014 21:20:04 +0100 (CET) Original-Received: from mail-ie0-x234.google.com (mail-ie0-x234.google.com [IPv6:2607:f8b0:4001:c03::234]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id sAJKK20u015729 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Wed, 19 Nov 2014 21:20:04 +0100 Original-Received: by mail-ie0-f180.google.com with SMTP id rp18so1351877iec.11 for ; Wed, 19 Nov 2014 12:20:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=GKe44YuqlHutsEBhwEIrnxioqssm07KcV2jZ/tuQjag=; b=FjKZZGuBl4U1WywhXe7AARndslmi2MPWD/r6Zvz7dMDENA5P0bbw8OZ2itYWrKfhTq S8XguEU+8Ysv3BbWC4UKAw0kJyq7uEaEvmfBTpLyT937BWVwJwaX5LWu83k3NcwjB01g lgn1U46BuSxQcx4Ys7R7ZQmXD6BBOkmY3mBn1itBPpST1VI1m2ImmWX40Y2lH4ts9tBr lGi6I08a826qKHfXIjYTbwA4Q0b3pOWrUowCiyQrcYrZ9SX0aBlhg59nOGcULpvrsaDY ksnYnfCCUWihDrQjf/DX+zw7JDAxhpHCHIHjM+QN+Zo//RSdfOSfcX1M/97v2AhbmQPi JPIw== X-Received: by 10.43.75.138 with SMTP id za10mr500571icb.23.1416428402037; Wed, 19 Nov 2014 12:20:02 -0800 (PST) Original-Received: by 10.107.165.143 with HTTP; Wed, 19 Nov 2014 12:19:41 -0800 (PST) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2607:f8b0:4001:c03::234; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06Nhwk3yu - 520bb0df92b3 - 20141119 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:89280 Archived-At: --===============1836086189== Content-Type: multipart/alternative; boundary=001a11c3f08ac0d72905083bef40 --001a11c3f08ac0d72905083bef40 Content-Type: text/plain; charset=UTF-8 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 --001a11c3f08ac0d72905083bef40 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On 11/17/2014 13:43 PM, Hans Hagen wrote:
> On 11/17/2014 11:51 AM, = Christoph Reller wrote:
&g= t; > Is there any way to construct "Set-OCG-State Actions" wit= h 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 correctl= y.
>=C2= =A0
> I'm not sure what yo= u mean but with the \goto command you can do a lot,
> including sequences of actions that enable/d= isable 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.
<= div>
=
Chri= stoph
--001a11c3f08ac0d72905083bef40-- --===============1836086189== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============1836086189==--