Tips & Tricks

Linking to Pages or Destinations Within PDFs

April 29, 2004

Advertisement
Advertisement
 

After looking through PDF forums all over the place, I've noticed that this particular question crops up all the time: "How can I link through to pages/named destinations WITHIN a PDF from my web page?" Being a true adherent to the "Economy of effort" principle (AKA just plain lazy), I thought it would be best to write this up as a tip to save typing it in each time.

Linking To Specific Pages

This is significantly simpler than linking to named destinations because it doesn't require any special steps to be taken in the preparation of the PDF file. I personally favor the page-linking method for this reason. In order to link through to a specific PDF page, begin with the domain, as you would for any web link:

http://www.mydomain.com/

Then add the name of the PDF document:

http://www.mydomain.com/myPDF.pdf

Then append "#page=" followed by the desired page number. For example, if you were looking to link to page 7:

http://www.mydomain.com/myPDF.pdf#page=7

So in all, the HTML link code would be:

<a href="http://www.mydomain.com/myPDF.pdf#page=7">Link text</a>

Linking to Named Destinations

First up, you'll need to create the destination. To do this from within Acrobat:

  1. Manually navigate through the PDF for the desired location, and magnification
  2. Go to View > Navigation Tabs > Destinations
  3. Under Options, choose Scan Document
  4. Once this is completed, select New Destination from the Options menu and enter an appropriate name

Now that you have created your destination, you can link to it using a similar syntax to that used for page linking. After the name of the PDF, append "#nameddest=" and the name of your chosen destination. So, if your PDF has a named destination, "TOC", that points to a table of contents, then your link code will look like this:

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

Happy linking!!

Related Products at PDF Store

ARTS PDF Aerialist

Take Acrobat to the next level with advanced splitting and merging; flexible bookmark creation and m... View full product details
Download free demo

Nitro PDF Professional OCR

Nitro PDF Professional OCR gives you all the features of Nitro Pro, plus the added power of Optical ... View full product details
Download free demo

Nitro PDF Professional

Nitro PDF Professional, your PDF creation and editing product. Priced at $99.99, Nitro PDF Pro is th... View full product details
Download free demo

PDF In-Depth Free Product Trials Ubiquitous PDF

Nitro PDF Professional

the perfect PDF product for business and enterprise, combining an extremely competitive price with a...

Download free demo

XpdfViewer

This ActiveX control (OCX) provides a PDF file viewer component, enabling developers to add PDF viewing...

Download free demo

Ubiquitous PDF: Crochet a Yoshi

Amongst the wonders (and occasional horrors) of Etsy.com we found this Mario-inspired PDF pattern. Feeling nostalgic for the days when Super Mario Bros. was the height of pixellated sophistication? This amigurumi doll is for you so find yourself some yarn and have at it.

September 02, 2010
Search Planet PDF
more searching options...







Download PDF Creator

Download The Best of Planet PDF volume 2
Planet PDF Newsletter
Most Popluar Articles
Features

Collating PDFs using JavaScript

Despite the numerous benefits, there can be potential issues with the conversion of paper documents into electronic archives. When scanning paper pages into PDF, it's possible to end up with the odd- and even-numbered pages in separate PDF files. It can be very time-consuming to collate them manually, but there is an easier way. Sean Stewart explains.

Featured Product

BCL easyPDF SDK

BCL easyPDF SDK is a set of PDF Programming Libraries designed specifically to help Software Developers / Programmers build and deploy enterprise class PDF applications for corporate wide PDF...

Platinum Sponsor
Create & Edit PDF - Nitro PDF Software

ARTS PDF

Silver Sponsors

PDF-Tools QuickPDF: The Unrivaled PDF Developer Toolkit