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
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
participants (1)
-
Pablo Rodriguez