TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to reference a specific page in another pdf document. There is also a bookmark on that page, which I could use.

However, I have no control over the other document, and maybe it wasn't even created with Tex.

Is there a way to extract labels from the file that I could use with \hyperref or xr, or which other packages or commands could I use?

share|improve this question
Usually you refer to other (external) sources by citing them, e.g. \cite. As far as i understood, \ref is really made only for inernal referencing. – Ruben Aug 12 '13 at 9:26
This would be nice for referencing in large document packs. – Forkrul Assail Aug 12 '13 at 18:22
The beginning of your question seems to imply you know the page you want to open to; Adobe's documentation at adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/… has examples of opening pdf documents via URL (I would guess a "file://" would work too). So now the issue is to create a clickable URL in your document. I am puzzled by the second part of your question: Even if you extracted all the labels in the file, how would you know which specific label to target? – user1823664 Aug 13 '13 at 13:50
Well, I could try them all or at least hope that they are named somewhat reasonable so that I can identify the one I need. That link you provided mentions "named destinations", that looks promising. I'll see if I can extract those from the document. – Cephalopod Aug 13 '13 at 14:15
up vote 7 down vote accepted

If the external PDF is generated with pdflatex without labels or with another program as LibreOffice, you can use \href of package hyperref with the option [page=x]. Example:

Some text.  
\href[page=4]{external.pdf}{See page 4 of the external PDF} 

Unfortunately, this work with Acrobat Reader but not with others as Evince, for example. This is a problem of the viewer, not the LaTeX code.

share|improve this answer

user1823664's documentation link gave me another lead.

In Acrobat, under View > Show/Hide > Navigation Pane > Destinations one can find a list of destinations in the document. They can be referenced via

\href{external.pdf#thedestination}{See other stuff of the external PDF} 
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.