Recently,I made a beamer, and want to link a pdf I have made before,but I only link to the first page of pdf document using the command”\href{doc/mydoc.pdf}{thedoc}“.Someone said "use \href{doc/mydoc.pdf#page.5}{thedoc}or \href{doc/mydoc.pdf#page=5}{thedoc}"but it doesn't work.
Who knows?
Many thanks!
Text Formatting ⇒ How to link to specified page of an outer pdf document!
-
- Posts: 2
- Joined: Sat Dec 19, 2009 5:29 pm
NEW: TikZ book now 40% off at Amazon.com for a short time.

How to link to specified page of an outer pdf document!
1,1,2,3,5,8,13,21,34,55,89,144,233,...
-
- Posts: 2
- Joined: Sat Dec 19, 2009 5:29 pm
How to link to specified page of an outer pdf document!
Thank you
If I do not have the pdf's source file, it also doesn't work!
How to link to specified page of an outer pdf document!
All hyperref/pdflatex can do is insert a link of a certain form. It's up to the PDF viewer what to do with that link, and I don’t think there’s a standard link format for pages of external PDF files. Even if some viewers have implemented something for this, it wouldn’t be a robust solution.
My suggestion would be to actually include the linked-to PDF in the PDF you’re creating, and then you can use features of the pdfpages package to insert hyperlink targets for the included pages, and then you can use internal links. A quick example:
I'm not sure how well this works with beamer, however, if at all.
My suggestion would be to actually include the linked-to PDF in the PDF you’re creating, and then you can use features of the pdfpages package to insert hyperlink targets for the included pages, and then you can use internal links. A quick example:
Code: Select all
\documentclass{article}
\usepackage{pdfpages}
\usepackage{hyperref}
\begin{document}
Here's a \hyperlink{included.pdf.2}{link to to page 2 of the included pdf}.
\includepdf[pages=1-5,link=true]{included.pdf}
\end{document}