1

I have bookmark text that contains titles and their page locations on a specific PDF:

chapter 1: xyz  page 200
chapter 2: xau  page 234
chapter 3: dae  page 344
chapter 4: dar  page 452
...

what package is best to import these bookmarks into the PDF?

5
  • 2
    Reworded: You have an existing PDF and you wish to add PDF bookmarks to specific pages?
    – Werner
    Jan 5, 2017 at 6:45
  • Yes, that's exactly what I want.
    – KitKat
    Jan 5, 2017 at 6:48
  • See package bookmark. Jan 5, 2017 at 6:50
  • How was the original PDF created? Or are you creating it using (La)TeX?
    – Werner
    Jan 5, 2017 at 7:02
  • The PDF is a 5000+ pages scan of an old book, then processed for OCR.
    – KitKat
    Jan 5, 2017 at 7:05

1 Answer 1

2

Here's how you can add a bunch of fixed bookmarks to specific pages in an existing PDF:

\documentclass{article}

\usepackage{pdfpages,bookmark}

\pagestyle{empty}

\begin{document}

\includepdf[pages=-]{big5000pagebook}

\bookmark[dest={page.200}]{Chapter 1: xyz}
\bookmark[dest={page.234}]{Chapter 2: xau}
\bookmark[dest={page.344}]{Chapter 3: dae}
\bookmark[dest={page.452}]{Chapter 4: dar}
...

\end{document}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .