[Tex/LaTex] includepdf outputs blank pages

pdfpages

I want to insert an iEEEtran article (paper.pdf) of multiple pages into TU delft report template for my thesis (thesis.pdf). tudelft-report uses a document class book.

When I use package pdfpages, it adds pages of paper.pdf but they are all blank. To be more specific, the pages are blank but if I highlight the text in thesis.pdf I can see it is there, see example in the figure.

How do I fix it? or Why does this occur?

P.S. it works to add paper.pdf works with \includegraphics but I don't want to add each page separately.

MWE:

\documentclass[whitelogo]{tudelft-report}
\usepackage{pdfpages}

\begin{document}
\begin{minipage}{\textwidth}
\includepdf[fitpaper= true, pages=-]{paper.pdf}
\end{minipage}
\end{document

Output

Best Answer

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}
\pagecolor{white}
%\nopagecolor % without it the picture is lost:
\includepdf[fitpaper= true, pages=-]{example-image.pdf}

\end{document}

and alternative solution described in the pdfpages documentation is to set the pagecolor once before loading pdfpages:

\documentclass{report}
\usepackage{xcolor}
\pagecolor{white}
\usepackage{pdfpages}

\begin{document}
\pagecolor{white}
\includepdf[fitpaper= true, pages=-]{example-image.pdf}

\end{document}
Related Question