How to hyperlink (add parameters to externally hyperlinked files)

J

Jacob Suzerain

How do you pass parameters to external files you hyperlink to?

I maintain notebooks with extracts of documents I work from. These are
scanned pdfs and I need to add a hyperlink with a reference to the specific
page in the pdf.

According to the acrobat documentation the way to reference a page in a pdf
externally is as follows:
Acrobat.exe /A "page=4=OpenActions" "C:\example.pdf"

(This according to Microsoft seems to be the correct way to do it
http://office.microsoft.com/en-us/word/HP101640101033.aspx )

This workd perfectly from the command line or if its put in a shortcut.
However if you try to insert a hyperlink of this form it fails in as onenote
apparently doesn't know to pass on the parameters (also unlike word you cant
embed a shortcut in onenote).

How should I be constructing the hyperlink to make this work?
 
S

Simon Lacoste-Julien

I have the same question. If you put
file:///C:\doc.pdf#nameddest=test_dest
in a url in a webpage, you can successfully jump to the target destination
'test_dest' in the pdf document by using your favorite browser. But when you
put this in the address field of a link in OneNote 2007, it opens the pdf
file at the first page without jumping to the destination (visibly ignoring
the argument).

Any hack to make this work?

I would love to be able to link directly to specific pages in my pdf file
which has hundred of pages...
 
J

Jacob Suzerain

This a partial solution to the problem ...

If you run a webserver on your local machine you can include hyperlinks of
the following form:
http://localhost/example.pdf#page=5

The pdf will then open to page 5 in your browser.
There are a quite a lot of free webservers available from heavyweights like
apache to lighterweights like abyss ( http://www.aprelium.com/abyssws/ )
which will do this job

The problem with this approach is that f you change the preference in
Acrobat (Edit->Preferences->Internet->Display Pdf in web browser) then
acrobat will open in a separate window rather than being embedded in the
browser. However it will not then open to the correct page.

There are good reason why having acrobat embedded in the browser is an
unsatisfactory solution. Keyboard shortcuts dont work for example. This is
enormously irritating.

To solve this problem I am almost finishing customisng a lightweight open
source webserver specifically to locally serve acrobat files to Word and
Onenote correctly.

I will post a link in the next couple of days to the source and .exe.

Cheers,
Jacob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top