# Importing bookmarks to PDF with Latex

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?

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

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}