problem loading attachments (important for my work)
![](https://secure.gravatar.com/avatar/5955e8e90611e77ccbfc7721b6112027.jpg?s=120&d=mm&r=g)
Dear list, I have the following sample: \setupinteraction[state=start] \setupinteractionscreen[option=attachment] \setuppapersize[A5, landscape] \setuppagenumbering[location=] \starttext File: \attachment[file={h:/general-documents/document.pdf}] \stoptext I’m afraid that the file exists and ConTeXt in Win10 (64bit) isn’t able to load the file. ConTeXt loads \attachment[file=document.pdf], but not documents with paths. Could anyone confirm the issue in Windows? This is important for my work. BTW, if you don’t want to invoke "net use", "subst" may do the trick (https://ss64.com/nt/subst.html). Many thanks for your help, Pablo -- http://www.ousia.tk
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
On 6/8/2017 9:40 PM, Pablo Rodriguez wrote:
Dear list,
I have the following sample:
\setupinteraction[state=start] \setupinteractionscreen[option=attachment] \setuppapersize[A5, landscape] \setuppagenumbering[location=] \starttext File: \attachment[file={h:/general-documents/document.pdf}] \stoptext
I’m afraid that the file exists and ConTeXt in Win10 (64bit) isn’t able to load the file.
When I test with \attachment[file={t:/sources/cow.pdf}] it gets embedded in the file (you can check with \nopdfcompression)
ConTeXt loads \attachment[file=document.pdf], but not documents with paths.
Could anyone confirm the issue in Windows? This is important for my work.
BTW, if you don’t want to invoke "net use", "subst" may do the trick (https://ss64.com/nt/subst.html).
Many thanks for your help,
Pablo
-- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/5955e8e90611e77ccbfc7721b6112027.jpg?s=120&d=mm&r=g)
On 06/09/2017 12:36 AM, Hans Hagen wrote:
On 6/8/2017 9:40 PM, Pablo Rodriguez wrote:
[...] I’m afraid that the file exists and ConTeXt in Win10 (64bit) isn’t able to load the file.
When I test with
\attachment[file={t:/sources/cow.pdf}]
it gets embedded in the file
(you can check with \nopdfcompression)
Many thanks for your replies, Akira and Hans. Well, I must be doing something (stupid and) wrong with the path. I will report later, after I check it in Windows. Many thanks for your help, Pablo -- http://www.ousia.tk
![](https://secure.gravatar.com/avatar/5955e8e90611e77ccbfc7721b6112027.jpg?s=120&d=mm&r=g)
On 06/09/2017 06:20 AM, Pablo Rodriguez wrote:
On 06/09/2017 12:36 AM, Hans Hagen wrote:
[...] When I test with
\attachment[file={t:/sources/cow.pdf}]
it gets embedded in the file
(you can check with \nopdfcompression)
Many thanks for your replies, Akira and Hans.
Well, I must be doing something (stupid and) wrong with the path. I will report later, after I check it in Windows.
I was pointing to a non-existing file. (I probably copied the file and somebody renamed it before I tested the method to include attachments). Sorry for the noise, Pablo -- http://www.ousia.tk
participants (2)
-
Hans Hagen
-
Pablo Rodriguez