[Tex/LaTex] Insert a full page image

coversgraphics

How can I insert a full page image? No blank space left in the page.

Bonus: How can I add some text over the image?

Best Answer

Using background package:

\documentclass{article}
\usepackage{lipsum} %% gives dummy text for this file
\usepackage{background}
\backgroundsetup{
scale=1,
angle=0,
opacity=.4,  %% adjust
contents={\includegraphics[width=\paperwidth,height=\paperheight]{pgfmanual}}
}
\begin{document}
\lipsum
\end{document}

Use keepaspectratio as the option to \includegraphics if you wish.

enter image description here

Using eso-pic:

\documentclass{article}
\usepackage{lipsum} %% gives dummy text for this file
\usepackage{eso-pic,graphicx}
\AddToShipoutPictureBG{%
  \AtPageLowerLeft{\includegraphics[width=\paperwidth,height=\paperheight]{pgfmanual}}
  }
\begin{document}
\lipsum
\end{document}

Using wallpaper:

\documentclass[a4paper]{article}
\usepackage{lipsum} %% gives dummy text for this file
\usepackage{wallpaper}
\CenterWallPaper{1}{pgfmanual}
\begin{document}
\lipsum
\end{document}

Further, tikzpagenodes gives you additional hooks on the page using which one can insert the image with the help of tikz and its remember picture and overlay options. This will be left as a practice assignment :)

Related Question