On 12/27/2024 8:11 PM, Bruce Horrocks wrote:


On 27 Dec 2024, at 10:03, Wolfgang Schuster <wolfgang.schuster.li...@gmail.com> 
wrote:

Bruce Horrocks schrieb am 27.12.2024 um 00:09:
Trying to include a URL as a clickable link using \goto but in the generated 
PDF the underlying link is corrupted.

\setupinteraction[state=start]
\starttext
\goto{https://www.mclpcb.com/blog/polyimide-pcb-material-information-fr4-vs-polyimide-pcb/}
[https://www.mclpcb.com/blog/polyimide-pcb-material-information-fr4-vs-polyimide-pcb/)]
\stoptext

Becomes: 
https://www.mclpcb.com/blog/polyimide%C2%ADpcb%C2%ADmaterial%C2%ADinformation%C2%ADfr4-vs%C2%ADpolyimide-
Note hyphens changed and the URL has been truncated.

To get working links use url(...) for the second argument and to ensure it 
breaks at proper points in text use \hypehantedurl{...} for the first argument.

\goto{\hyphenatedurl{...}}[url(...)]

Thanks Wolfgang and Hans - it was the missing url(...) where I seem to be 
incapable of cutting and pasting properly anymore!

I'm surprised that anything got put into the PDF - if it had failed to do 
anything then I think I would have realised. Oh well, live and learn. :-)

try without the url ... and \nopdfcompression .. there is no annot in the pdf file ... it's likely your pdf viewer trying to be smart by interpreting the page (test) stream (i really don't like such features)

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 : ntg-context@ntg.nl / 
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
___________________________________________________________________________________

Reply via email to