Document Classesimporting multiple page pdfs

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
pooley343
Posts: 17
Joined: Mon Oct 20, 2008 2:53 pm

importing multiple page pdfs

Post by pooley343 »

I am trying to import a multi-page pdf (a report not written by me) into my own report. I have tried using the \includegraphics{???.pdf} but this only takes the first page.

Anyone know how to make it take every page and make sure that each page of the inputted report is on its own page in my report?

The only way I have been able to do it is print out each page as its own pdf and importing each page separately. Is there a better way?

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

importing multiple page pdfs

Post by localghost »

Have a look at the pdfpages package. The documentation will help you to get along.


Best regards
Thorsten¹
User avatar
Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

importing multiple page pdfs

Post by Juanjo »

pooley343 wrote:I am trying to import a multi-page pdf (a report not written by me) into my own report. I have tried using the \includegraphics{???.pdf} but this only takes the first page.
Not exactly, you can include any of the pages, just use the page key: \includegraphics[page=nn]{file}
pooley343 wrote: Anyone know how to make it take every page and make sure that each page of the inputted report is on its own page in my report?
localghost has already suggested the pdfpages package, which defines the \includepdf command. That's the simplest way.
pooley343 wrote: The only way I have been able to do it is print out each page as its own pdf and importing each page separately. Is there a better way?
Yes, of course, as said above. Just a final remark. If you experience problems with the \includepdf command and would like to directly use \includegraphics, it is not necessary to write this command one time per page. You can include a full document or a part of it with a simple loop. Look here.
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
zillions
Posts: 11
Joined: Fri Sep 04, 2009 10:45 pm

Re: importing multiple page pdfs

Post by zillions »

This was an extremely helpful post for me. I've inserted multipage documents.

But now I would like to number these pages according to their place inside the latex document. I would like to superimpose the correct page number on top of the inserted PDF.

Is this possible?

thanks,
Bobby
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

importing multiple page pdfs

Post by localghost »

zillions wrote:[…] But now I would like to number these pages according to their place inside the latex document. I would like to superimpose the correct page number on top of the inserted PDF. […]
Search the pdfpages manual for the pagecommand option.
zillions
Posts: 11
Joined: Fri Sep 04, 2009 10:45 pm

Re: importing multiple page pdfs

Post by zillions »

thanks, solved that one too!
rommelmoros3
Posts: 2
Joined: Wed May 23, 2012 5:37 pm

Re: importing multiple page pdfs

Post by rommelmoros3 »

How can i include ALL pages of a .pdf file, using the page key: \includegraphics[page=]{file}. What must i write in page= ??. I tryed with page= - and doesn´t work
Post Reply