LaTeX forum ⇒ Conversion Toolspdflatex, pdfpages - import pdf with bookmarks

Information and discussion about output converters related to LaTeX (e.g. dvips, ps2pdf, ...)
SkyHiRider
Posts: 11
Joined: Mon Oct 18, 2010 2:14 pm

pdflatex, pdfpages - import pdf with bookmarks

Postby SkyHiRider » Fri May 13, 2011 3:12 pm

I'm using pdflatex to generate pdf files and the pdfpages class to import pdf files into my document (\includepdf).

When a pdf file is imported it looses all of its bookmarks that were present in the original file. Is there a way to preserve the bookmarks in the new file?
Last edited by SkyHiRider on Sat May 14, 2011 6:51 pm, edited 1 time in total.

User avatar
Stefan Kottwitz
Site Admin
Posts: 9406
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Fri May 13, 2011 5:09 pm

Hi,

pax can help to bring the bookmarks, hyperlinks and other PDF annotations to the new file.

Stefan
Site admin

SkyHiRider
Posts: 11
Joined: Mon Oct 18, 2010 2:14 pm

Postby SkyHiRider » Sat May 14, 2011 4:11 pm

Thanks, didn't know about pax. Now just to find a way of running it on a Linux distro with Texlive installed.

SkyHiRider
Posts: 11
Joined: Mon Oct 18, 2010 2:14 pm

Postby SkyHiRider » Sat May 14, 2011 5:32 pm

Answer to my previous question for future readers: use the pdfannotextractor command (works on Ubuntu).

If you're getting a weird error, use pdfannotextractor --install (this should fix the perl dependencies and automatically install all the needed packages).

Have a new issue: How do I remove pdf hyperling highlighting in the newly created pdf? (every PDF document link has a red border and every outgoing link has a cyan border)

User avatar
Stefan Kottwitz
Site Admin
Posts: 9406
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Sat May 14, 2011 5:39 pm

Hi,

SkyHiRider wrote:Have a new issue: How do I remove pdf hyperling highlighting in the newly created pdf? (every PDF document link has a red border and every outgoing link has a cyan border)


this can be done by
  1. \hypersetup{colorlinks=false}

or set this as option to hyperref.

Btw. for new questions please open a new thread and mark the earlier thread as solved. This can be done by editing your first post in this thread (the question) and choosing the checkmark symbol as topic icon. So it's easier to see still open questions. Thanks for that!

Stefan
Site admin

SkyHiRider
Posts: 11
Joined: Mon Oct 18, 2010 2:14 pm

Postby SkyHiRider » Sat May 14, 2011 8:17 pm

It was actually
  1. \hypersetup{colorlinks=true}
that fixed it. Thanks!

User avatar
Stefan Kottwitz
Site Admin
Posts: 9406
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Sat May 14, 2011 8:21 pm

Or use

  1. \hypersetup{
  2. colorlinks=false,
  3. pdfborder={0 0 0}
  4. }


if you want to remove both color and frames.

Stefan
Site admin


Return to “Conversion Tools”

Who is online

Users browsing this forum: No registered users and 1 guest