GeneralInserting a PDF cover to a PDF book

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
jilani
Posts: 2
Joined: Thu Mar 05, 2015 2:02 pm

Inserting a PDF cover to a PDF book

Post by jilani »

Hi All,
I have a PDF book (MyBook.pdf) written in LaTeX witch has the classical table of contents visible on the left side of PDF Reader. I have added the cover MyCover.pdf using this LaTeX code:

Code: Select all

\documentclass[a5paper,BCOR=8.25mm]{book}
\usepackage{bookman}
\usepackage{pdfpages}
\begin{document}
\includepdf{MyCover.pdf}
\includepdf[pages=-]{MyBook.pdf}
\end{document}
The final PDF file includes the cover and the book but the table of contents on the left side of PDF Reader is now invisible.
What I am missing?
Thank you.
Jilani KHALDI
www.vindex.me

Recommended reading 2024:

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

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

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: Inserting a PDF cover to a PDF book

Post by Johannes_B »

Welcome,

don't include the book-pdf. Include the cover in your book-latex-file.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Inserting a PDF cover to a PDF book

Post by Stefan Kottwitz »

Hi Jilani,

welcome to the forum!

When you include PDF within a PDF, the original hyperlinks of the included PDF gets lost. This is not a problem with simple PDFs, such as a cover. However, it's an issue for a complete document, such as yours, with hyperlinks and bookmarks.

For printing, your approach of making a new PDF, which includes the other two PDF, would be ok. But not for an ebook.

That's why I agree with Johannes' advice: use \includepdf within your original book document to just include the cover at the beginning.

Stefan
LaTeX.org admin
jilani
Posts: 2
Joined: Thu Mar 05, 2015 2:02 pm

Re: Inserting a PDF cover to a PDF book

Post by jilani »

Yes! It works now as expected. Thank you very much.
Jilani KHALDI
www.vindex.me
Post Reply