Generalhyperref links not working with includePDF

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

hyperref links not working with includePDF

Post by Cham »

I made my title page with LaTeX, and there are some hyperref links (URLs) in it. PDFLaTeX then created a small PDF file (all hyperref links are working in this PDF file). I added the PDF title-page to the main LaTeX document, using the \includePDF command.

Now, the final PDF file as the proper title-page, but its hyperref links aren't working anymore.

I concluded that the URL link mechanism is broken by the \includePDF command.

Is there a way to make the links back ?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

hyperref links not working with includePDF

Post by Stefan Kottwitz »

Such including destroys links of the included pdf file. The cause is more in the way PDF works.

You can fix it using the pax package. It provides a Java program which reads the hyperlinks and stores them into a file which can be processed by TeX later when including. Like an extension of graphics, files are included but the stored links would be inserted.

It may be a bit cumbersome, so you may decide if it's worth the work.

Stefan
LaTeX.org admin
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

Re: hyperref links not working with includePDF

Post by Cham »

Thanks Stefan.

I've read somewhere else that the solution is really painfull to apply. I don't think it's really worth all the troubles, just for a few URLs on the title page. They also said that this may be a bug in LaTeX.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

hyperref links not working with includePDF

Post by Stefan Kottwitz »

Cham wrote:They also said that this may be a bug in LaTeX.
Try including a PDF in Microsoft Word, Viso, OpenOffice or LibreOffice. Does it work somewhere, can you see it in any program, except raw pdf tools like pdftk which concatenate PDF files?

Stefan
LaTeX.org admin
pineappleburger
Posts: 1
Joined: Sat May 30, 2020 4:27 pm

hyperref links not working with includePDF

Post by pineappleburger »

For anyone that stumbles upon this 6y-old post (like me): pdftk really works like a charm and preserves any hyperlinks. :D
Post Reply