2
$\begingroup$

Anyone knows if it is possible to export an image as a pdf and this image should act as a link to a website when one clicks on it form within a pdf viewer ?

$\endgroup$
5
$\begingroup$

I tried

Export["link.pdf", Hyperlink[
    Plot[x, {x, -2, 2}], 
    "https://mathematica.stackexchange.com/questions/179748/export-an-image-as-pdf-that-acts-as-a-link-mathematica"
    ]]

and the resulting link.pdf indeed has a plot that is a hyperlink.

$\endgroup$
  • $\begingroup$ Thanks a lot ! :)) $\endgroup$ – james Aug 9 '18 at 13:06
2
$\begingroup$
SetDirectory@$TemporaryDirectory;
Export[
 "Test.pdf",
 Hyperlink[
  RandomImage[1, {100, 100}],
   "http://www.wolfram.com"
  ]
 ];
 SystemOpen@"Test.pdf"
$\endgroup$
  • $\begingroup$ Thanks a lot ! :)) It works ! Nice $\endgroup$ – james Aug 9 '18 at 13:07

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.