Hans,
sorry for insisting in this issue. Here is the sample:
\setupinteraction[state=start]
\setupinteractionscreen[option=attachment]
\setuppapersize[A5, landscape]
\setuppagenumbering[location=]
\starttext
\startbuffer[abc]
hola μαριόλα
\stopbuffer
This PDF document contains a visible
attachment.\attachment[name=hidden.txt, title={χαλεπὰ τὰ καλά},
author=ConTeXt, subtitle=χαλεπὰ τὰ καλά, method=hidden, buffer=abc]
This PDF document should contain the same hidden attachment (under
a different name\attachment[name=visible.txt, title={χαλεπὰ τὰ
καλά}, author=ConTeXt, subtitle=χαλεπὰ τὰ καλά, method=visible,
buffer=abc].
\stoptext
I attach the patch. With the previous sample, it is clear that the
buffer keyword is needed in method=hidden.
Many thanks for your help,
Pablo
On 05/29/2017 08:29 PM, Pablo Rodriguez wrote:
> Hans,
>
> the following sample shows an issue with attachments:
>
> \setupinteraction[state=start]
> \setupinteractionscreen[option=attachment]
> \setuppapersize[A5, landscape]
> \setuppagenumbering[location=]
> \starttext
> \input knuth\attachment[file=e.pdf, title=Attachment \letterhash1,
> author=ConTeXt, subtitle=χαλεπὰ τὰ καλά, method=hidden]
> \stoptext
>
> method=hidden (http://pdf.ousia.tk/attachment-hidden.pdf) doesn’t
> actually attach the file (http://pdf.ousia.tk/attachment-hidden.png).
>
> But method=visible (http://pdf.ousia.tk/attachment-visible.pdf) attachs
> the file (http://pdf.ousia.tk/attachment-visible.png)
>
> I’m afraid that method=hidden was missing subtitle, file and name. I
> would say that buffer is also missing there, but I don’t know what it
> is used for.
>
> The attached .diff file fixes the issue. I have tested it and it works
> fine.
>
> I hope it helps,
>
> Pablo
--
http://www.ousia.tk
--- scrn-wid.mkvi 2017-05-29 19:42:55.793331013 +0200
+++ mkiv/scrn-wid.mkvi 2017-05-29 20:11:11.356652995 +0200
@@ -222,6 +222,12 @@
{\clf_insertattachment
tag {\currentattachment}%
registered {\currentattachmentregistered}%
+ % title {\attachmentparameter\c!title}%
+ subtitle {\attachmentparameter\c!subtitle}%
+ % author {\attachmentparameter\c!author}%
+ file {\attachmentparameter\c!file}%
+ name {\attachmentparameter\c!name}%
+ buffer {\attachmentparameter\c!buffer}%
method {\v!hidden}%
\relax}
_______________________________________________
dev-context mailing list
[email protected]
https://mailman.ntg.nl/mailman/listinfo/dev-context