Skip to main content
17 votes

Header and page numbers with pdfpages

I had a similar problem which was easily solved by using pagecommand but without any additional style or package. Just this way : \chapter{Title} Lots of multipage pdfs following \includepdf[pages=-,...
Ariane Chabert's user avatar
16 votes
Accepted

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

You need the fitpaper option instead of noautoscale \documentclass{article} \usepackage[a4paper]{geometry} \usepackage{pdfpages} \usepackage{lipsum} \begin{document} \lipsum[1-10]\clearpage \...
Ulrike Fischer's user avatar
15 votes

\includepdf combined pdf highlights missing

There is a very simple work around to this problem: just print the pdf document using a pdf printer e.g. Adobe and choose to include the markings. When you include this new pdf document the markings ...
Harry Broeders's user avatar
15 votes
Accepted

Including pdfpages renders rotated RevTeX 4.1 pdfLaTex output

The same happen with \documentclass{revtex4-1} \usepackage{lscape} \begin{document} Lorem ipsum dolor sit amet... \end{document} because revtex4-1 redefine the output routine: \@outputpage we ...
touhami's user avatar
  • 19.6k
13 votes
Accepted

Border around included pdf

With the comment of samcarter I manage to solve it somewhat: With these options: \includepdf[ clip=0mm 0mm 0mm 0mm, trim=20mm 40mm 20mm 15mm, pages=-, frame, scale=.65, ...
Ravenix's user avatar
  • 393
11 votes
Accepted

includepdf outputs blank pages

Your class contains a \pagecolor{white}. This hides the pdf included by \includepdf. You can reset the pagecolor with \nopagecolor: \documentclass{report} \usepackage{pdfpages} \begin{document} \...
Ulrike Fischer's user avatar
11 votes

Want pdf to fill the entire page in latex

You can use the scale option. \includepdf[scale=2]{filename}. Adapt the value of scale= to your needs. However, you can find the manual of pdfpages via texdoc pdfpages on the commandline. This ...
Keks Dose's user avatar
  • 31.3k
10 votes
Accepted

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

Let's create a bunch of random text: \documentclass{article} \usepackage[margin=15mm,paper=a6paper]{geometry} \usepackage{lipsum} \begin{document} \sloppy\lipsum[1-50] \end{document} We'll call this ...
Werner's user avatar
  • 607k
10 votes
Accepted

\newcommand verbatim parameter

verbatim, like \verb, cannot be used in the argument to another command. What you seem to need is just \texttt{\detokenize{#1}} so the underscore becomes printable: \newcommand{\pdf}[1]{% \...
egreg's user avatar
  • 1.1m
10 votes
Accepted

IEEEtran and pdfpages

This issue seems to be caused by calling \includepdf right after \begin{document}. You can either add some text, or use \null to put 'something' without any effect before including your pdf: \...
ebosi's user avatar
  • 11.8k
9 votes

\includepdf combined pdf highlights missing

In the documentation of pdfpages you find on page 2: Links and other interactive features of PDF documents When including pages of a PDF only the so called content stream of these pages is ...
knut's user avatar
  • 8,858
9 votes

includepdf and file with comma

Even in 2017, putting spaces and commas in filenames is a bad idea, however \documentclass[a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{pdfpages} \begin{document} \typeout{===} {\...
David Carlisle's user avatar
9 votes
Accepted

Something like \includeonly but for \includepdf?

You can borrow the \includeonly test used by \include. This just includes the text and attachment for B \documentclass{scrartcl} \usepackage{pdfpages} \makeatletter \let\oldincludepdf\includepdf \...
David Carlisle's user avatar
8 votes

How to include multiple pages in latex

A tcbraster combined with tcbincludepdf can also be used to include framed pages from an external file into another document. tcolorbox will do all scaling work. \documentclass{article} \usepackage[...
Ignasi's user avatar
  • 137k
8 votes

How to include PDF pages without a newpage before the first page?

It worked including a minipage. \begin{minipage}{\textwidth} \includepdf[scale=0.85,pages=1]{testpdf} \end{minipage}
Henrique Oliveira da Mata's user avatar
8 votes
Accepted

Error using pdfpages and lualatex

LuaTeX has changed quite a lot this year. Among other things the LuaTeX developers removed a lot of known (pdf)primitives from pdfTeX. Thus several packages that make use of these primitives need to ...
daleif's user avatar
  • 55.2k
8 votes
Accepted

Need 30 line pdf from Tex

The question allows many interpretations: Whole text ≤ 30 lines: Adding \end{document} at the end of the 30th line, cutting off line 31 to 48. Shorten the text to 30 lines. Page layout with 30 ...
Heiko Oberdiek's user avatar
8 votes
Accepted

How to insert a pdf page at the very last page of a book?

\AtEndDocument can be used to place the included page a little later after the possible additions of other packages: \documentclass[12pt,twoside,a4paper]{book} \usepackage{chapterbib} %% Required \...
Heiko Oberdiek's user avatar
8 votes
Accepted

Include PDF with small page size

\documentclass{article} \usepackage{pdfpages} \begin{document} \includepdf[page=1,fitpaper]{mooi} \includepdf[page=2,fitpaper]{mooi} \end{document} EDIT \documentclass{article} \usepackage{...
JPi's user avatar
  • 13.7k
8 votes
Accepted

Printing file name containing underscore

Use \detokenize: \documentclass{scrartcl} \usepackage{pdfpages} \newcommand{\INC}[1]{% \vspace*{\fill} \begin{center} \large\ttfamily\detokenize{#1} \end{center} \vspace*{\fill} \newpage \...
egreg's user avatar
  • 1.1m
8 votes

pdfpages clashes with graphicx (LaTeX Error: Option clash for package graphicx.)

pdfpages loads also graphicx, but without options. If you want to load graphicx with an option you should either load pdfpages behind graphicx: \documentclass[a4paper]{scrreprt} \usepackage[draft]{...
Ulrike Fischer's user avatar
8 votes
Accepted

Read metadata of inserted PDF page?

You can use the following code to verify the entries in the Info dictionary: \documentclass{scrartcl} \usepackage{luacode,pdfpages} \begin{luacode*} function utf16to8(u16str) local result = "" ...
Marcel Krüger's user avatar
7 votes

How to create a 'summary of changes' with latexdiff

There is a new functionality in latexdiff since version 1.1.0 that outputs only those pages where a change has been made. Check out option --only-changes to latexdiff-vc or options -s ONLYCHANGEDPAGE ...
frederik's user avatar
  • 1,415
7 votes
Accepted

Insert two pdf pages at the bottom

You can place the pages using \includegraphics and specify the pages separately: \documentclass{article} \usepackage[margin=1in]{geometry} \usepackage{graphicx,lipsum} \renewcommand{\bottomfraction}...
Werner's user avatar
  • 607k
7 votes

Adding caption with minipages to \includepdf figure page

Option 1 Use \includegraphics for the page which needs the caption. It doesn't matter if this is the first page or not. Here, I exclude the first two pages of a seven page PDF, add a caption when ...
cfr's user avatar
  • 207k
7 votes
Accepted

How to discard an area of a pdf page using pdfpages?

You can place the image (yes, the page is just an image) on a blank page using eso-pic and graphicx. Then you can overlay a white rectangular \rule to fill in over the area you don't want. \...
Werner's user avatar
  • 607k
7 votes

Inserting a digitally signed PDF to an article

For future users, I solved this by first printing the signed PDF to PDF, and then the signature showed up in my Latex document using \includepdf.
Michael's user avatar
  • 81
7 votes
Accepted

Do calling \includepdf make the page dimension of output equal to that of the included document?

By default pdfpages respects the page size of the surrounding document. But you can use the fitpaper option to force the size. \documentclass[]{article} \usepackage{pdfpages} \begin{document} some ...
Ulrike Fischer's user avatar
7 votes
Accepted

Is there a way to change the page number in the TOC when inserting a PDF?

pdfpages provides addtotoc as an option for specifying what of the included document should be added to the ToC. It takes 5 arguments: addtotoc={<page number>, <section>, <level>, &...
Werner's user avatar
  • 607k
6 votes

How do I insert double blank pages

\newpage ~\newpage will simply do the trick.
Ahmed Bayoumi's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible