Skip to main content
April 21, 2011
Answered

Hyperlink to a bookmark in PDF file

  • April 21, 2011
  • 2 replies
  • 128869 views

I have a PDF file included in my project help source.

I have added a hyperlink in a topic to open that PDF file.

That is working fine and no problems.

Is it possible to define a hyperlink wthin a topic to open the PDF and go to a bookmark within the PDF?

Basically what I want to do is this:

Have an FAQ topic that provides a list of frequently asked questions with corresponding answers.

The answer must be short and concise but allow the user to click a hyperlink to get "more information".

Some of the content that is the "more information" for the answer is not in a topic, but in the PDF.

I would like to define a hyperlink within a topic that opens the PDF to a specific place WITHIN the PDF file.

I assumed the place in the PDF must have a bookmark (is there any other way?).

I have:


Created the bookmark in a Word document.

Added that bookmark as a bookmark when creating the PDF using Adobe Acrobat.

(This is not ideal as it appears in my PDF as extra bookmarks - I will deal with that after I see if this approach will really work)

I tried doing a standard bookmark hyperlink (e.g., DataDefinitions.PDF#HPI Metrics) but the PDF just opens without going to the specific place within the PDF that has the relevant content.

Is this even possible?

It just seems like it can be, but maybe I am just experiencing wishful thinking.

As always, thanks for any advice/assitance/suggestions.

Michael F Weart

This topic has been closed for replies.
Correct answer joelp33891094

Jumping to a page inside a PDF can be done for a URL But bookmarks cannot be used inside a URL.  The trick is to use Named Destinations.  Here's an example:

http://www.reality-tech.com/url-to-a-location-inside-a-pdf/

Joel Plaut

2 replies

joelp33891094Correct answer
New Participant
March 30, 2016

Jumping to a page inside a PDF can be done for a URL But bookmarks cannot be used inside a URL.  The trick is to use Named Destinations.  Here's an example:

http://www.reality-tech.com/url-to-a-location-inside-a-pdf/

Joel Plaut

RoboColum_n_
Brainiac
April 21, 2011

Hi Michael.

There are a couple of ways to achieve this. To link to a specific page by number use:

<a href="http://www.domain.com/file.pdf#page=3">Link text</a>

To link to a named location (destination) use:

<a href="http://www.domain.com/file.pdf#nameddest=TOC">Link text</a>


  The RoboColum(n)   @robocolumn   Colum McAndrew
April 22, 2011

Colum --

First off, a BIG thanks for the help.

I got the "page" tag to work just fine, the other example you provided seemed easy enough but it did not work.

The "destination" tag was a little more of a challengd as I did not know what destinations were in Acrobat.

After some poking in my PDF file, I found the functionality and this works GREAT as these do not appear as bookmarks.

THANKS --

Michael F Weart

New Participant
August 8, 2012

For the life of me I can NOT get this to work. I've entered the info as indicated above into my dreamweaver layout and can't get the PDF to open to a bookmark, page or destination. I've tried with the PDF local in same folder as html and a remote file on a temporary web server. I've tried using all variations of the page, destination and bookmark tags in Safari, Firefox and Opera on the Mac. Can someone send me a sample of code that works and is LIVE so I can test and see it BEFORE replicating. Please, please, please.