This tex file generates a full-width image of a blue square on the second page, after a completely blank page. What causes the extra page and how to prevent it?
\documentclass{article}
\usepackage{graphicx}
\usepackage[margin=0cm]{geometry}
\usepackage{tikzpagenodes}
\setlength{\parindent}{0pt}
\setlength{\parskip}{0pt}
\begin{document}
\begin{tikzpicture}
\node[inner sep=0pt] (blue) at (0,0)
{\includegraphics[width=\paperwidth]{b0.jpg}};
\end{tikzpicture}%
\end{document}
pdfTeX 3.14159265-2.6-1.40.16 (TeX Live 2015/Debian)
pgf 3.0.1a


b0.pnga blue square? Try replacingb0.jpgwithexample-image, do you see the same problem? – caverac Feb 11 '18 at 15:34\pagecolor{blue}. – Torbjørn T. Feb 11 '18 at 15:52example-imageonly uses the first page. I would like to cover the page, even if some of the image does not fit in. I guess my issue is withheight=\paperheightor greater? If i set that height i get the same problem again – M.T Feb 11 '18 at 15:53tikzpictureenvironment, using\tikzworks. – M.T Feb 11 '18 at 16:15\tikzis a shortform for thetikzpictureenvironment, so that's not the key difference. The clue is in theremember picture, overlayoptions, and using thecurrent pagenode (described in section 17.13.2 in thepgf/TikZ manual). – Torbjørn T. Feb 11 '18 at 17:52