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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

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