Group Abstract Group Abstract

Message Boards Message Boards

0
|
6.8K Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:
GROUPS:

I want to display a pdf File with Hypelink but i don't ge what i expexted.

I want to display a PDF file with Acrobat Reader (or other default programm), but with the following instruction does not get display such external file. A window nb is created and displays the code of the the pdf file. How do i get what i want?

Hyperlink["Hola", "\\CDF\\Latex\\Seno.pdf"]

or

Hyperlink["Hola", "\CDF\Latex\Seno.pdf"]

Thanks

POSTED BY: Ernesto Espinosa

I dont' believe the Hyperlink function can be used to open files other than urls and .nb files. I could be wrong. I used the Button function and modified it to look like a hyperlink. I then put a SystemOpen function inside that will open file types outside of Mathematica using the default program. Also, you should be using forward slashes and not backward slashes. And you have an extra one for some reason before CDF, but I guess that depends on where your home directory is.

Here's the code. Hope this helps.

Button[Mouseover[Style["Hola", "Hyperlink"], 
  Style["Hola", "HyperlinkActive"]], SystemOpen["CDF/Latex/seno.pdf"],
  Appearance -> "Frameless"]
POSTED BY: Michael McCain
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard