Questions tagged [pdfpages]

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

8
votes
2answers
1k views

\includepdf combined pdf highlights missing

I used \includepdf[pages=-]{...} to combine several pdf files. It does combine, but some highlights made in some individual pdfs using Adobe Reader Comments are missing. The highlights can be seen in ...
8
votes
3answers
707 views

How can (easily) superimpose different text over odd/even pages of an included PDF file?

I have a series of pdf files that I'm trying to combine. That much I can do without any problem. What I also need to do is add a small amount of text to the top 'outside' corner of each page, ...
8
votes
2answers
3k 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} \usepackage[top=2cm,...
8
votes
2answers
128 views

Superimpose LaTeX / TeX output over a large PDF file

I need to add annotations to large PDF file. The method suggested in this answer does not scale well: \documentclass[12pt]{article} \usepackage{pdfpages} \usepackage{tikz} \begin{document} \...
8
votes
1answer
1k 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} \...
8
votes
1answer
2k views

Filled out form fields are left blank when using /includepdf

I have included a PDF file in my document using \includepdf[pages=-]{pdf/document_to_include.pdf} This works fine, except document.pdf has form fields which are filled out (and the document has been ...
8
votes
2answers
22k views

pdfpages & includepdf not working

I compiled the following file (through MiKTeX which I have just updated all files), and I do not get the junk.pdf file inserted. \documentclass{report} \usepackage{pdfpages} \begin{document} qwe \...
8
votes
1answer
281 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 ...
7
votes
2answers
6k views

Compile two A5 pages on one A4 page

I often make A5 size hand outs for my students. I would like the A5 page to be directly compiled to have a copy of the original A5 page on one A4 page. Up till now my solution has been to make a ...
7
votes
3answers
189 views

Include many files of very similar names all with one command?

I have dozens of pdf with the same name except for a changing number at the very end, e.g. xyz1.pdf, xyz2.pdf, ... xyz38.pdf. I know the command \includepdf{}, but writing it 38 times to include all ...
7
votes
1answer
389 views

Inserted graphic - jagged edges to show that it is just part of the whole

I would like to make visibly clear, that an inserted graphic is just part of the whole. Since a straight cut just appears as inserted falsy, I was wondering if there are any tricks to show jags for ...
7
votes
1answer
407 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
2answers
583 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: \documentclass[...
7
votes
1answer
160 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
546 views

How to use a subset of a beamer presentation?

I am trying to take the PDF output of a beamer presentation and take only a subset of the slides, and create a PDF file out of them (I can't recompile the beamer presentation with the relevant slides, ...
7
votes
2answers
3k 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={-}, pagecommand={\...
7
votes
1answer
106 views

What is wrong with this syntax?

If I write \noindent\vskip 0ex plus 2ex\includegraphics[width={\textwidth plus 2pt minus 2pt}, angle=0]{J2-23-1} it is correct However, if I write \noindent\vskip 0ex plus 2ex\includegraphics[...
7
votes
1answer
931 views

Including pdfpages renders rotated RevTeX 4.1 pdfLaTex output

This happened when I updated MikTeX to the latest version (as of time of this post) and tried the workaround regarding adding pdf pages to RevTeX documents. Running the code below produced text ...
7
votes
1answer
263 views

The frame of a \framebox disappears in pdfpages

I am trying to put the word "hello" on every page of a pdf file using pdfpages. The following code works, but the frame around "hello" disappears. I tried it on a one blank page pdf file (called "...
7
votes
2answers
5k 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
467 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 not ...
7
votes
2answers
2k views

Draftwatermark with inserted PDF

I have included a watermark (using \usepackage{draftwatermark}) for draft copies of my document, several pages of which are inserted from a PDF. The watermark behaves just fine on most pages - the ...
7
votes
1answer
2k 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: \...
7
votes
1answer
2k 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
6answers
2k 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 ...
6
votes
2answers
2k views

How to pass the draft option for pdfpages to \includegraphics?

If I use \usepackage[draft]{pdfpages} and include \includepdf[...]{...} everything works fine, i.e. instead of the included pages I get empty boxes. But if I use \includegraphics[...]{...} ...
6
votes
3answers
814 views

pdfpages / pdfbook for odd sizes paper

I have a book typeset with pages of 105mm x 180mm This needs to made into a booklet, in signatures, such that it prints on A4 portrait paper, with the original book pages side by side. (i.e. 105mm + ...
6
votes
3answers
3k views

How to install PDFBox on Windows so it works with pax?

I am trying to use pdfpages and maintain the internal bookmarks within the included PDF files. The pdfpages README suggests using the pax package for this purpose, so I have installed that from CTAN ...
6
votes
2answers
268 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
687 views

Using ranges with pdfpages fails

The documentation says the following: E.g.: pages=- will insert all pages of the document [...] however, when I put \includepdf[pages=-]{foobar.pdf} in my LaTeX doc (compiled w/ xelatex), I get ...
6
votes
1answer
9k views

how to position pdf with \includepdf in book, also depending on even/odd page

I am writing my thesis for which we have specific requirements regarding the paper size. This is what I have at the beginning of my thesis file: documentclass[a4paper]{book} \textheight=175mm \...
6
votes
2answers
1k views

“adjustbox” with Export option seems to break page selection (in “pdfpages”)

I'd like to include some pages from a separate PDF with the right half trimmed off, but I don't know in advance the exact size of the pages. I tried a solution, using pdfpages to include from the PDF ...
6
votes
1answer
2k views

pdfpages and linktodoc

I'm trying to link to a specific page in an external document. This has been discussed previously under the topic, How to link to specified page of an outer pdf document?, and the answer suggests ...
6
votes
1answer
831 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
1answer
111 views

Producing a document with a lot of almost identical pages in the most efficient way

I want to make a document which consists of, let's say, one page, which has to be repeated 10000 times. On each repetition of a page a unique number will be added on the page (I won't show it in MWE, ...
6
votes
2answers
2k 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
2answers
2k views

Is there a way to manually add entries to the list of figures?

I'm writing my thesis and one section is going to be made of an already existing article. I'm including it with \usepackage{pdfpages} and\includepdf[fitpaper=true, pages=-]{Impactpaper.pdf}. I'd ...
6
votes
1answer
642 views

includepdf does not find file with comma

I am already using grffile to ensure that all files are found on the file system (windows 7), but now I have an example where the second file is not found. \documentclass[]{scrbook} % \usepackage[% ...
6
votes
1answer
421 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 ...
6
votes
1answer
487 views

Insert only half a pdf page

I'd like to include papers of mine which can easily be done with the pdfpages packages: \usepackage{pdfpages} \includepdf[pages=-]{mypaper.pdf} However, my thesis has an A5 format. Which means that ...
6
votes
1answer
349 views

pdfpages-PDF appears in background of pgfplots-plot

I'm using pgfplots with the externalize feature, which creates external pdfs for all my plots. But there seems to be a strange interaction with pdfpages when externalize is used. The pdf I'm including ...
6
votes
1answer
1k views

converting a hyperlinked pdf \includepdf to black and white

Most recent scientific articles come with hyperlinks within the document (generally linking citations to the references; e.g. this file). These are often coloured. When including them into a TeX file,...
6
votes
1answer
350 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 ...
5
votes
3answers
2k views

How to create a Book Cover with pdfpages

i know there are many questions on how to create a book cover, but my questions seems to be a bit different. I create a frontpage, a backpage and the spine for my cover Frontpage: \documentclass{...
5
votes
2answers
833 views

How can I place a 1 cm margin to a set pdf book (a6) to print

So I've already got my book ready set for a6 paper: contents, latex compilation, and I'm already satisfied with the end result of pdf I've got. However I've noticed that it'd be good to add a small ...
5
votes
2answers
505 views

includepdf and file with comma

How can I use filenames with commas with pdfpages? The grffile package didn't help, the \detokenize command didn't help either Also the \string command doesn't work. For ex. \includepdf{\string"C:/...
5
votes
1answer
4k views

How to insert a A3 PDF into a A4 Latex document with PDFLatex?

Assume I have a A3 landscape PDF, how can I include this into a A4 portrait latex document but still as A3-page? If I have one.tex producing a landscape A3: \documentclass{article} \usepackage[...
5
votes
3answers
5k views

\includepdf only shows first page

Using XeLaTeX I am trying to add a PDF to my file. Only the first page the PDF is included in the output file. The following MWE refers to a PDF I created using Apple's TextEdit and 'Save as PDF' ...
5
votes
2answers
1k views

How to include multiple pdf pages using \foreach as tikzpicture?

I know how to include pdf pages using package pdfpages and do it all the time, but always had problem with getting the page centered and scaling. I am now trying to learn how to use tikzpicture to ...
5
votes
2answers
335 views

Front-end for pdfpages

I use following .tex file very much for printing books, booklets, etc \documentclass{article} \usepackage{pdfpages} \begin{document} \includepdf[pages={4-8},nup=1x2,frame,landscape]{xyz.pdf} \end{...