From: Pablo Rodriguez via ntg-context <ntg-context@ntg.nl>
To: Hans Hagen via ntg-context <ntg-context@ntg.nl>
Cc: Pablo Rodriguez <oinos@gmx.es>
Subject: Re: [NTG-context] viewer layers (optional content groups, OCG)
Date: Fri, 23 Jun 2023 20:21:59 +0200 [thread overview]
Message-ID: <9e219955-bb38-cddf-47eb-ea0570661c13@gmx.es> (raw)
In-Reply-To: <6f8756bd-1eaa-1119-6150-9a780e77fc0d@freedom.nl>
[-- Attachment #1: Type: text/plain, Size: 690 bytes --]
On 6/22/23 18:07, Hans Hagen via ntg-context wrote:
> On 6/19/2023 8:41 PM, Henning Hraban Ramm via ntg-context wrote:
>> Checking viewer layers:
>>
>> * \setupviewerlayer doesn’t work; e.g. "state=stop" only works if I put
>> it in \defineviewerlayer
> in next upload
Hans,
since this is related to OCG, a minor improvement.
/Export (inside /Usage) is actually a dictionary with a single entry
(/ExportState) and values /ON and /OFF (from the PDF spec
https://raw.githubusercontent.com/adobe/dc-acrobat-sdk-docs/master/docs/standards/pdfstandards/pdf/PDF32000_2008.pdf#search=ExportState):
The attached patch fixes this issue.
Many thanks for your help,
Pablo
[-- Attachment #2: ocg-export.diff --]
[-- Type: text/x-patch, Size: 399 bytes --]
--- lpdf-ren.lmt 2023-06-23 20:08:17.096662826 +0200
+++ mkxl/lpdf-ren.lmt 2023-06-23 20:09:05.358959481 +0200
@@ -78,8 +78,8 @@
}
local pdf_export = {
- [v_yes] = pdf_on,
- [v_no] = pdf_off,
+ [v_yes] = pdfdictionary { ExportState = pdf_on },
+ [v_no] = pdfdictionary { ExportState = pdf_on },
}
-- We can have references to layers before they are places, for instance from
[-- Attachment #3: Type: text/plain, Size: 496 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
prev parent reply other threads:[~2023-06-23 18:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-19 18:41 Henning Hraban Ramm via ntg-context
2023-06-22 16:07 ` Hans Hagen via ntg-context
2023-06-23 18:21 ` Pablo Rodriguez via ntg-context [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9e219955-bb38-cddf-47eb-ea0570661c13@gmx.es \
--to=ntg-context@ntg.nl \
--cc=oinos@gmx.es \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).