On 9/13/2026 7:44 PM, Pablo Rodriguez via ntg-context wrote:
Dear Hans and dear list,
I use ConTeXt to generate documents with attached PDF files at work at
at home extremely often (more than twice a week).
In order to make things easier for the recipient, I implemented simple
links to hidden attachments (visible ones give issues with some signing
softwares), by modifying `lpdf-ano.lmt`:
+local pdf_gotoe = pdfconstant("GoToE")
local pdf_gotor = pdfconstant("GoToR")
- S = pdf_gotor, -- can also be pdf_launch
- F = filename,
+ S = pdf_gotoe,
D = destination or defaultdestination,
NewWindow = actions.newwindow and true or nil,
+ T = pdfdictionary {
+ N = filename,
+ R = pdfconstant("C"),
+ },
Then I only have to explain: open the PDF with Acrobat Reader (or
Firefox) and click on the [x-colored] link borders.
hm, but that overloads going to external documents
I know I may show the attachment tab directly when opening, but this
doesn’t work with electronically signed documents (or at least, it
didn’t work last time I checked).
I have a friend that asked me for help regarding that (since I helped
her some time ago with a similar issue).
She needs to send a request to a goverment office: one main document
digitally signed by a notarized powers-of-attorney (also electronically
signed) document and the embedded request document signed also by the
notarized document.
Structure would be like that (believe it or not, this is a rather common
structure for such documents):
+ main document (1)
+ embedded document in (1): request (2)
+ embedded document in (2): powers-of-attorney (3)
In order to avoid stupid mistakes, she needs the main document 1 to
contain a direct link to the powers-of-attorney document 3 (and the
request-document 2 needs to have a link to document 3).
With my modification above, I would need to embed document 3 twice (once
in the main document and a second time in the embedded request).
but how does one knows what doc is embedded in the embedded doc
Would it be possible that ConTeXt could include links to embedded
documents (`/GotoE` actions) to any x-child, in a similar way it
includes links to external PDF documents (`/GotoR` actions)?
I think they are really useful. After using it for more than a couple of
years, now I need to be able to link to any x-child.
Syntax could be `\goto{}[embedded-1.pdf>embedded-2.pdf>target]` for
hidden attachments and `\goto{}[1:1>target]` for visible ones.
that doesn't fit the syntax, it would be something [embedded(filename)]
or so
The vast majority of embedded PDF documents I link to aren’t generated
by ConTeXt: just in case issues with `\in` and similar commands.
What open source viewers support this?
We need an (uncompressed) example at least.
If it weren’t possible to include this in ConTeXt, would anyone be so
kind to help me develop a minimal module that achieves exactly this
functionality?
Do people really believe that adobe tools are not looking into their
embedded legal documents? I stopped launching acrobat as it kept
offering summaries and whatever which could as wll mean 'go to some
adobe ai thing'
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] /
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________