# Insert pages of pdf in document

I a pdf file that contains the "first" page of each chapter, 26 in total, of a book I wrote. I use \includepdf[pages=1]{foo.pdf} for the cover and works fine. But, when I go the chapter 1 and use \includepdf[pages=2]{foo.pdf} I get an empty page. What is wrong? My code:

\documentclass{book}
\usepackage[left=1.5cm,right=1.5cm]{geometry}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[table]{xcolor}
\usepackage{booktabs,newtxtext,newtxmath,multirow}
\usepackage{ltablex}
\usepackage{amssymb}
\usepackage{mathabx}
\usepackage{pdfpages,graphics}
\begin{document}
\pagecolor{lilita}
\include{i_}
\include{u_}
\end{document}


If I use \pagecolor{...} command I obtain blank pages: example using \pagecolor

but, if I drop that command, I obtain the first pages: example without \pagecolor

I want the pages to have color. How do I acomplish that?

• Is the 2nd page of foo.pdf blank? Jun 2 '18 at 13:07
• No. In this "foo.pdf" I generated the cover page and the first page of each chapter using an Adobe's program. This foo.pdf contains 26 pages. But "calling" the corresponding page for chapter 1 I obtain a blanck page, which I know is not blanck in the pdf. And so forth for the rest of the chapters. Jun 2 '18 at 13:42
• Try to insert with smaller size to see if the problem comes from some non free space to insert. Jun 2 '18 at 13:57
• I scaled the pdf: \includepdf[pages=1,scale=.5]{foo.pdf}. Same results. Jun 2 '18 at 14:21
• So, please, try to edit your post and show us a minimal code and provide your pdf. Then, we can try to compile it and compare. Jun 2 '18 at 14:23

\pagecolor{white}

Ref.: section 2.5 of pdfpages manual p. 11.
Note that the colour chosen doesn't matter. You can change it as much as you like after and specify anything you like here. But you must specify a colour before loading pdfpages.