[Tex/LaTex] External (HTML) link to a specific page of a pdf file

htmllinksonlinepdf

I want to hyperlink to a certain page of a pdf file created with LaTeX from an HTML context or just as a plain-text link outside the file, e.g. using <a href="...">...</a>. Is it possible to specify the page at which the pdf is opened?

Knowing how different pdf viewers are, there might be a solution that only works with Adobe Reader, that'd be ok though.

Can you have hyperlinks to locations in different PDFs? is a similar question about internal (LaTeX) hyperlinks.


I know this question is just borderline on-topic, it can be considered as being about

  • (La)TeX related software and tools like BibTeX, LyX, LaTeX editors, viewers, and converters

(from the FAQ). I posted it because I thought it could be valuable for answering questions here, e.g. if you want to link to a certain page of The Comprehensive LaTeX Symbol List or some other lengthy document. Likewise, people dealing with LaTeX often put their documents online and might want to provide detailed links.

Best Answer

I doubt that there is an official way to do this (i.e. one mentioned in either the PDF or (X)HTML specification), but I could of course be wrong.

For Adobe Acrobat (in a web browser) it seems to work the following way as mentioned at http://kb2.adobe.com/cps/317/317300.html:

<A HREF="http://www.example.com/myfile.pdf#page=4"> 

Simply attach #page=4 to the PDF link. (I myself was first thinking about ?page=4 instead, but # actually makes more sense.)

Example:
http://mirror.ctan.org/macros/latex/contrib/adjustbox/adjustbox.pdf#page=11

Or as formatted link:
[`adjustbox` manual, page 11](http://mirror.ctan.org/macros/latex/contrib/adjustbox/adjustbox.pdf#page=11)
adjustbox manual, page 11

Related Question