ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Support of PDF Optional Content Groups (Layers)
@ 2014-11-16 19:47 Christoph Reller
  2014-11-16 20:46 ` Pablo Rodriguez
  2014-11-16 20:52 ` Wolfgang Schuster
  0 siblings, 2 replies; 8+ messages in thread
From: Christoph Reller @ 2014-11-16 19:47 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 525 bytes --]

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_reference_1-7.pdf

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

[-- Attachment #1.2: Type: text/html, Size: 801 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Support of PDF Optional Content Groups (Layers)
  2014-11-16 19:47 Support of PDF Optional Content Groups (Layers) Christoph Reller
@ 2014-11-16 20:46 ` Pablo Rodriguez
  2014-11-16 20:52 ` Wolfgang Schuster
  1 sibling, 0 replies; 8+ messages in thread
From: Pablo Rodriguez @ 2014-11-16 20:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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_reference_1-7.pdf
> 
> 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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Support of PDF Optional Content Groups (Layers)
  2014-11-16 19:47 Support of PDF Optional Content Groups (Layers) Christoph Reller
  2014-11-16 20:46 ` Pablo Rodriguez
@ 2014-11-16 20:52 ` Wolfgang Schuster
  2014-11-16 23:28   ` Hans Hagen
  1 sibling, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2014-11-16 20:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 782 bytes --]


> Am 16.11.2014 um 20:47 schrieb Christoph Reller <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_reference_1-7.pdf <http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/pdf/pdfs/pdf_reference_1-7.pdf>
> 
> 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


[-- Attachment #1.2: Type: text/html, Size: 1448 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Support of PDF Optional Content Groups (Layers)
  2014-11-16 20:52 ` Wolfgang Schuster
@ 2014-11-16 23:28   ` Hans Hagen
  0 siblings, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2014-11-16 23:28 UTC (permalink / raw)
  To: ntg-context

On 11/16/2014 9:52 PM, Wolfgang Schuster wrote:
>
>> Am 16.11.2014 um 20:47 schrieb Christoph Reller
>> <christoph.reller@gmail.com <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_reference_1-7.pdf
>>
>> 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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Support of PDF Optional Content Groups (Layers)
  2014-11-19 20:19 Christoph Reller
@ 2014-11-19 21:48 ` Wolfgang Schuster
  0 siblings, 0 replies; 8+ messages in thread
From: Wolfgang Schuster @ 2014-11-19 21:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1129 bytes --]


> Am 19.11.2014 um 21:19 schrieb Christoph Reller <christoph.reller@gmail.com>:
> 
> 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


[-- Attachment #1.2: Type: text/html, Size: 3103 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Support of PDF Optional Content Groups (Layers)
@ 2014-11-19 20:19 Christoph Reller
  2014-11-19 21:48 ` Wolfgang Schuster
  0 siblings, 1 reply; 8+ messages in thread
From: Christoph Reller @ 2014-11-19 20:19 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 899 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 2375 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Support of PDF Optional Content Groups (Layers)
  2014-11-17 10:51 Christoph Reller
@ 2014-11-17 12:43 ` Hans Hagen
  0 siblings, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2014-11-17 12:43 UTC (permalink / raw)
  To: ntg-context

On 11/17/2014 11:51 AM, Christoph Reller wrote:
> On Sun, 16 Nov 2014 15:29:20 Hans Hagen wrote:
>  > On 11/16/2014 9:52 PM, Wolfgang Schuster wrote:
>  > > 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_reference_1-7.pdf
>  > > >
>  > > > 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
>
> Many thanks to all of you Hans, Wolfgang, and Pablo!
>
> \definelayer and \startviewerlayer is a nice interface to basic OCGs
> construction.
>
> 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).

Hans


-----------------------------------------------------------------
                                           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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Support of PDF Optional Content Groups (Layers)
@ 2014-11-17 10:51 Christoph Reller
  2014-11-17 12:43 ` Hans Hagen
  0 siblings, 1 reply; 8+ messages in thread
From: Christoph Reller @ 2014-11-17 10:51 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 1349 bytes --]

On Sun, 16 Nov 2014 15:29:20 Hans Hagen wrote:
> On 11/16/2014 9:52 PM, Wolfgang Schuster wrote:
> > 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_reference_1-7.pdf
> > >
> > > 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

Many thanks to all of you Hans, Wolfgang, and Pablo!

\definelayer and \startviewerlayer is a nice interface to basic OCGs
construction.

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.

Kind Regards, Christoph

[-- Attachment #1.2: Type: text/html, Size: 1959 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-11-19 21:48 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-16 19:47 Support of PDF Optional Content Groups (Layers) Christoph Reller
2014-11-16 20:46 ` Pablo Rodriguez
2014-11-16 20:52 ` Wolfgang Schuster
2014-11-16 23:28   ` Hans Hagen
2014-11-17 10:51 Christoph Reller
2014-11-17 12:43 ` Hans Hagen
2014-11-19 20:19 Christoph Reller
2014-11-19 21:48 ` Wolfgang Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).