Document ClassesInserting PDF Pages into Presentation

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
code401
Posts: 2
Joined: Sat Apr 20, 2013 1:53 am

Inserting PDF Pages into Presentation

Post by code401 »

Hi LaTeX users,

I'm new to LaTeX and I'm creating slides in beamer and trying to include a PDF document into my slides. After searching the net, I came across this suggestion.

Code: Select all

\setbeamercolor{background canvas}{bg=}
\includepdf[pages={1-5}]{file.pdf}
But this is not inserting the PDF, rather I see a blank white page on that slide. I also tried this.

Code: Select all

\includegraphics[pages={1-5}, width=\textwidth]{file.pdf}
But this inserts only the first page of the PDF.

I want to insert all the pages in the PDF document into my presentation. Any suggestions? Thanks in advance.

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

code401
Posts: 2
Joined: Sat Apr 20, 2013 1:53 am

Re: Inserting PDF Pages into Presentation

Post by code401 »

Hi Tex users....

Any suggestion????
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Inserting PDF Pages into Presentation

Post by localghost »

The problem is that the dimensions of a beamer frame (width=363.19536, height=273.14662pt) significantly differs from those of e.g. a page in letter paper format (width=614.295pt, height=794.96999pt). Hence pdfpages simply can't work. And I'm fairly sure that graphicx does not support the pages option for its \includegraphics command.

So, the only way to get all pages of the concerned PDF document into your presentation seems to split the document into its single pages and include those.


Thorsten
Post Reply