{pdfpages} is a package that simplifies the inclusion of external multi-page PDF documents in LaTeX documents.

learn more… | top users | synonyms (1)

42
votes
1answer
18k views

pdflatex, \includegraphics, and multi-page PDF files

I have a PDF file with multiple figures; each figure is a separate page in the PDF file. I am using pdflatex, and I would like to use \includegraphics or equivalent to include some of the figures. ...
25
votes
7answers
13k views

How can I crop included PDF documents?

I've got a PDF that is automatically generated from a certain piece of software, that I want to include in the report I'm writing. I'm using pdfpages which gets the job done elegantly, but the problem ...
25
votes
3answers
6k views

Base document page numbers with pdfpages

I'm writing a report, in LaTeX. And I need to include, as appendices, other latex documents I have written. I am currently doing this using pdfpages and it works. However, the inserted PDF has no page ...
17
votes
2answers
7k views

Error when inserting a PDF page into a Beamer presentation

I'm using pdfpages to insert a page from a pdf file into my Beamer presentation, but the result is a completely empty page. Here is smaller version of the file: \documentclass{beamer} ...
16
votes
1answer
1k views

Include several pages of a PDF without losing LaTex document style

I would like to include several pages of a PDF as a subsection in my LaTex Document using the package pdfpages. I tried \includepdf[scale=0.8,pages=1-5,pagecommand=\subsection{blub}]{testpdf} from ...
14
votes
2answers
3k views

Attached external pdf file is not showing page number

I am writing my thesis. I have a "main" LaTeX file from where I am calling (attaching) pdf file. But the attached pdf file is not showing any page number. Also, it is not showing other page style I ...
14
votes
1answer
509 views

How do I generate only the first 10 pages of a document?

I use pdflatex to generate my documents. I want to create a preview of my document and generate only the first 10 pages, but I still want the full table of contents. How do I do that?
12
votes
2answers
6k views

Includepdf as a figure

I want to include some pages of a pdf file into my document and wrap them into a figure with a caption for example (with pdfpages) \begin{figure}[h] \centering ...
12
votes
1answer
2k views

Header and page numbers with pdfpages

I have a chapter of attachments which contains pdf files in this format, using the awesome pdfpages package: \chapter{Title} Lots of multipage pdfs following ...
12
votes
2answers
240 views

How to create a 'summary of changes' with latexdiff

Following my previous question, I have successfully created a dif.tex file of a large, complex project, the results of which can be seen here. (This was done, in the end by updating latexdiff to the ...
11
votes
2answers
3k views

How to use tilde or space in includepdf filename?

I'm trying to include a pdf in a document, using pdfpages package, but I'm having troubles when filename contains tilde or space. e.g. ...
11
votes
2answers
272 views

Include adjacent PDF slides from two different sources through \includepdf

I would like to include pages from two different PDF files on a single page, side by side (possibly using nup=2x2). Presently, there is a page ejected before each \includepdf.
10
votes
1answer
847 views

Linux Libertine and pdfTeX: glyph `a' undefined

I have little doubt, usually, in the Linux Libertine font with LaTeX / pdflatex, but a couple of weeks ago, the following happened to me: I have the file with the following test.tex ...
10
votes
1answer
688 views

Can I add tikzpictures to pages included with pdfpages

I would like to decorate pages of some pdf documents with tikzpictures. My idea was to include them with pdfpages, and then draw a tikzpicture overlay on top of the page. ...
10
votes
2answers
4k views

TOC entries and labels for included PDF pages

I am embedding full pages from another PDF document (using the pdfpages package), but I would like to be able to declare my own section headings before each embedded document (for e.g. hyperlinking / ...
10
votes
1answer
3k views

Landscape and page numbers with pdfpages

I am using pdfpages to insert PDFs into a master file. Some of the PDFs are portrait and some are landscape. I am using pagecommand=\thispagestyle{plain} so that the page numbers are in sequence ...
10
votes
4answers
399 views

Include multiple pdf pages on single sheet

I would like to include multiple pages from a pdf document on a single page im my document. \includepdf can do that using the 'nup' option. \documentclass{book} \usepackage{fancyhdr} ...
10
votes
1answer
1k views

Include trimmed multipage PDF in XeTeX

I have a multipage PDF manuscript (for example, my_PDF.pdf) that I would like to include in a new document. I would also like to trim/clip off the header and footer from each page of this included ...
9
votes
2answers
92 views

Including PDF pages from URL

Does anyone know a way of including an external PDF document from a URL? When using pdfpages the following will not work: \includepdf[pages=-]{http://www.mydomain.com/myfile.pdf} My reason for ...
9
votes
1answer
145 views

Joining .synctex files of documents blended by \includepdf

When I typeset a journal issue, I first make the seperate articles, and I join them together (adding the Table of Contents and other stuff, that's irrelevant now). When I read the final issue.pdf, I ...
8
votes
2answers
16k views

How to include a PDF image into a PDFLaTeX document

I am generating a PDF file using pdflatex and need to include another PDF file. The reason is that I have a graphMl file which I exported from yEd graph editor to a PDF file, named sample.pdf. The TeX ...
8
votes
3answers
7k views

How to include multiple pages in latex

I have a pdf file consisting of four pages (see attached). I want to include it in Latex, but when I use the basic code given below, only the first page of the pdf appears. I want to do is to present ...
8
votes
3answers
2k views

Unable to link to inserted pages with pdfpages

I would like to add labels to pages inserted with the pdfpages package. I sort of works right now, but it is not possible to link to the labels with \ref and \pageref commands. But it is possible to ...
8
votes
3answers
531 views

Include figure from PDF file

I want to include a figure from another PDF. There is the quick way, where I take a screen shot, save as my desired format and the \includegraphics[scale=xx]{<file path>} but this is messing up ...
8
votes
2answers
239 views

What is the recommended practice for making multi-article publications with LaTeX?

I would like to migrate the process of preparing a scientific journal at our department from MS Word to LaTeX. There is already a document class that could be used for individual articles. However ...
7
votes
6answers
1k views

Thesis in LaTeX without memoir

I'm preparing a thesis report in LaTeX. I don't want to use the memoir class as I would like total control. I have two questions: My thesis consists of an introduction and then a series of articles ...
7
votes
2answers
5k views

Printing a double-sided A5 document on A4 paper

I have a doubled-sided A5 landscape document with the following page order: As my printer supports only A4 paper, I want to print two of these pages on one portrait A4 paper so that I can cut it in ...
7
votes
5answers
25k views

Insert PDF file in LaTeX document

I have a problem when I insert a PDF file in LaTeX: \usepackage[final]{pdfpages} \includepdf[pages=-]{file.pdf} The problem is that the PDF page is not centered: I've tried to place tags ...
7
votes
2answers
162 views

How to get a reasonable coordinate system when combining pdfpages and TikZ?

I have been trying to add content to a (proprietary) PDF with LaTeX by using pdfpages to inlude the original pages and draw on them using TikZ. This is the code I have been using: ...
7
votes
1answer
349 views

Can I convert a 16 page pdf into an 8x2 matrix in LaTeX?

My graphing program (R) can plot a set of figures out, each on a separate page of the same pdf. Is there a way to convert this into a single 4x4 or 8x2 figure in LaTeX? There are alternatives, but ...
7
votes
1answer
131 views

Put a pstricks cover at the beginning of a file without affecting the rest of it

I have two files. One is a pstricks cover. The other is the interior of the book. They both are fine on their own. I would like to put the code for pstricks cover on the first page of the pdf and ...
7
votes
2answers
1k views

pdfpages, addtolist and list of tables

These may be separate questions, but the following MWE: \usepackage{pdfpages} ... \addcontentsline{lot}{subsection}{\ref{tab:UserRoles} \textbf{User Roles}} \includepdf[pages={-}, ...
7
votes
1answer
344 views

Incompatibility between memoir and pdfpages ?

I am including a single pdf page (the title of my thesis) with the package pdfpages : \begin{document} \includepdf{title.pdf} ... But since I switched from report to memoir the page is ...
7
votes
2answers
2k views

Add a figure title and x-axis label to a figure matrix created using pdfpages

Background I previously asked: Can I convert a 16 page pdf into an 8x2 matrix in LaTeX? I ended up creating a 3x5 matrix of images from a 15 page pdf by compiling a document "foo.tex": ...
7
votes
1answer
182 views

How to link to sibling PDF when using pdfpages and hyperref

I am using pdfpages to tie several PDF documents together (yes, they must be separate documents) into a portfolio. My problem is that I need to place many, many links within one child document that ...
7
votes
1answer
102 views

How do pages included with \includepdf using pdfpages differ from regular pdf pages produced by pdflatex?

I wondered if anybody could explain what differences there are in the PDF which would differentiate pages produced by running pdflatex on the .tex file where the code is part of that file and pages ...
6
votes
2answers
185 views

Including a length-dependent page range using pdfpages

I'd like to extract pages from 16 to (last page minus one) using pdfpages. I know I can access the last page via the token last, but I need to do arithmetic on it, to get a page range that looks like ...
6
votes
2answers
95 views

\pdfpages, box, headers

I'm using pdfpages to put a PDF file into my latex document. The command \includepdf[page=1,angle=90,height=\textheight]{file.pdf} works fine but I would rather it kept the header and footer that ...
6
votes
1answer
2k views

Insert external PDF pages with adapted size, position and margins

I'm using the changepage package to adapt my pages as illustrated in this figure: The paper size is A4 and the page size is B5 (first boarder). Within the B5 region, margins are set up as shown in ...
6
votes
1answer
675 views

Using a macro as value of addtotoc in \includepdf

I would like to include pages from an external PDF file into my document, using the pdfpages package. The following works for me: \documentclass{article} \usepackage{pdfpages} \begin{document} ...
6
votes
2answers
2k views

pdfpages package and layoutsize (geometry package)

I tried to include a PDF page using the pdfpages package — this works well for a standard case, f.e. (t.pdf is the first page of the PGF manual): \documentclass{scrartcl} \usepackage{geometry} ...
6
votes
1answer
996 views

Multiple copies of short page on one sheet of paper

Suppose you have a short document (including a fancy header) which occupies only a small part of a DIN A4 page, like in this example: \documentclass[a4paper, 12pt]{article} ...
6
votes
1answer
543 views

Getting pax/pdfpages to work with xelatex?

Please consider the following MWE, in a form of a batch file, which creates two tex files (one of them gets \includepdfd in the other): cat > insert.tex <<'EOF' \documentclass{article} ...
6
votes
1answer
389 views

Include another pdf in a box (and other details)

Some time ago I read a paper that was tightly based on another one. It was from the same authors so they included the previous papers as appendixes. I noticed (and liked) that these appendixes were ...
6
votes
2answers
789 views

Setting up pdfpages with memoir?

I am using memoir for writing my PhD thesis. In my university we have to include submitted, accepted, and prepared drafts of related papers as appendices. These papers have all been previously ...
6
votes
1answer
901 views

Captions for tables included via pdfpages

I have a large number of multipage longtables as independent pdfs. I am including these pdfs in my main document using the pdfpages package. My code for including the PDFs currently looks like this: ...
6
votes
1answer
2k views

Overlay LaTeX/TeX coding easily on PDF with 300 pages

I've been looking for a way to overlay TeX/LaTeX i.e maths language etc (everything LaTeX is designed for) onto a background document containing 310 pages combined together in a PDF file. So far I ...
6
votes
1answer
254 views

Using pdfpages with mixed landscape / portrait pdfs

I am using pdfpages to include PDFs in my LaTeX document. Some of these pdfs have both landscape and portrait pages, and I won't necessarily know in advance where these occur. Is there a way to get ...
6
votes
1answer
227 views

Page number when using includepdf

Can you recommend an easy way to place the page number on an imported PDF? For instance, when using: \includepdf[fitpaper=true]{last_site/last_site.pdf} \includepdf was used twice because the code ...
6
votes
1answer
257 views

Included PDF gets corrupted after Acrobat’s color conversion

I found a strange error … I’m typesetting a musical score with Sibelius 7. And to add some text and notes I use LaTeX (i.e. xelatex but the error is the same with pdflatex). To get a complete PDF of ...