Thursday, March 13, 2008

How to Customize Html Hyperlink to PDF Pages?

Take readers directly to the information they seek.

You can use HTML hyperlinks, those famous filaments of the Web, to integrate PDF documents with HTML documents. A simple link to a PDF document is not enough, though, because a single PDF might hold hundreds of pages. It is like handing a haystack to somebody searching for a needle. The solution is to modify the HTML link so that it takes the reader directly to the PDF page of interest. This kind of seamless integration of HTML and PDF pages requires some groundwork.

To tailor a hyperlink's PDF destination, just add one or more of the suffixes listed in below to the href path.

Open the PDF to page number N (the first page is 1)
page=N

Display PDF bookmarks
pagemode=bookmarks

Display PDF thumbnails
pagemode=thumbs

Conceal PDF bookmarks and thumbnails
pagemode=none

Conceal the Acrobat scrollbars
scrollbar=false

Conceal the Acrobat toolbar
toolbar=false

These are glued together and appended to the href path using a special notation. The first suffix follows a hash mark. Each additional suffix follows an ampersand. These options are fully documented in PDF Open Parameters, located at http://partners.adobe.com/asn/acrobat/sdk/public/docs/PDFOpenParams.pdf.

For example, to open mydoc.pdf to page 17 and display its document bookmarks, the hyperlink href would look like this:

http://pdfvault.com/mydoc.pdf#page=17&pagemode=bookmarks


These special PDF hyperlinks do not work when you're using Internet Explorer and the PDF is on your local disk.

Save Display Settings in the PDF
You can also save these display settings in the PDF file. Whenever and however the PDF is opened, it will be displayed according to your settings.

1 comments:

Rights Management said...

Hi,

PDF To HTML Converter converts pdf file to web pages. Automatically link page numbers to all generated pages and resize pictures to fit frame borders. Thanks a lot.