The magazine of the Melbourne PC User Group

PDF Bookmarks
Trevor Gosbell
 
 
Trevor Gosbell explains how to link directly to a specific location within a Document

You probably know that on many Web pages you can make a link directly to a specific spot within the page. For instance, let's say
you wanted to point someone to the information about the Web Site Design SIG — it's at this Web address (URL):

         http://groups.melbpc.org.au/

But there's a lot of other information on that page and you can be even more helpful by directing your friend right to the relevant
part of the page, by writing it like this:

        http://groups.melbpc.org.au/#Webdes

Where there's a marker in a Web page, called a "named anchor", you can link directly to that spot by adding the name of the anchor
(in this case "Webdes") onto the end of the URL with a # symbol.

Well, you've probably seen that trick before — but did you know the same idea also works for PDF files? There's something about
PDF files on the Web, isn't there? They're often huge and they're always harder to navigate than a normal Web page — so much
the better then if you can offer a link that takes people straight to the required page.

Let's say you also want to recommend some books on Web development to your friend. Well, the Melbourne PC User Group library
listing is available at:

        http://www.melbpc.org.au/library/Library.pdf

But it's 26 pages long! How could you help your friend locate the relevant books? They are listed at the bottom of page 6 and the
top of page 7 (see Figure 1), so perhaps you could provide a link that goes straight to the top of page 7:

       http://www.melbpc.org.au/library/Library.pdf#page=7

Do you see how it works? Nominate the appropriate page number and add it to the URL with a # symbol. And unlike Web pages, this
works for all PDF files without any need for them to have special anchors included.

There are several of these "open parameters" that you can play with, for example:

       http://partners.adobe.com/public/developer/en/acrobat/PDFOpenParams.pdf#page= 5&pagemode= bookmarks&view=fitbh,400

Since I was shown this trick by a friend at work, I've used it frequently and I reckon you'll find it handy as well.

For more information on "named anchors" in Web pages, see:
the HTML specification
       http://www.w3.org/FR/htmI401/struct/links.html#h-12.2.1
Or
W3Schools
http://www.w3schools.com/html/html_links.asp

For more information on PDF "Open Parameters", see:
       http://partners.adobe.com/public/developer/en/acrobat/PDFOpenParams.pdf

Reprinted from the September 2006 issue of PC Update, the magazine of Melbourne PC User Group, Australia

[ About Melbourne PC User Group ]