I am using \documentclass{article}
, how would I create one page with backround image without margins, so the background image would span the whole page?
I am using this:
\usepackage{eso-pic}
\newcommand\BackgroundPic{%
\put(0,0){%
\parbox[b][\paperheight]{\paperwidth}{%
\vfill
\centering
\includegraphics[width=\paperwidth,height=\paperheight,%
keepaspectratio]{img0016.png}%
\vfill
}}}
Then for the page this:
\newpage
%\newgeometry{left=2.5cm,right=2.5cm,top=2.5cm,bottom=2cm}
\AddToShipoutPicture*{\BackgroundPic}
\section*{Something, some text}
%\restoregeometry
The result is this:
Top and bottom margins are 0, so it is OK, how can I get rid of the white lines just for this one page?
Thank you very much
keepaspectratio
. If you drop that key, the picture will fill the full page but get "deformed". That is to say, either the paper geometry accidentally fits the dimensions of that graphics or you need to make some compromise.\includegraphics[width=\paperwidth,keepaspectratio,clip]{img0016.png}
This seems to kind of zoom in without distortion.clip
indicates, it clips, i.e. truncates, the graphics.