[NTG-context] issue attaching remote files

Pablo Rodriguez oinos at gmx.es
Mon Nov 4 18:26:02 CET 2019


Hi Hans,

I have the following sample:

    \setupinteraction[state=start]
    \starttext
    \startTEXpage[offset=1em]
    \attachment
        [file={https://eur-lex.europa.eu/legal-content/%
            ES/TXT/PDF/?uri=CELEX:02010L0040-20180109},
         name=one.pdf,
         color=orange]
    \attachment
        [file={https://eur-lex.europa.eu/legal-content/%
            ES/TXT/PDF/?uri=CELEX:52011DC0144R(02)},
         name=two.pdf,
         color=magenta]
    \stopTEXpage
    \stoptext

Because of the parentheses in the file address, the second file isn’t
attached, due to the use of parentheses (sorry, but I cannot avoid this
in their address).

curl is also unable to download the second file unless an output name is
specified (with --output or -o).

Would it be possible that ConTeXt could handle the second address with
parentheses to attach the file to a PDF document?

Many thanks for your help,

Pablo
--
http://www.ousia.tk


More information about the ntg-context mailing list