How about a simple example like the following? Create the image file, name it test.png
, then compile the document via pdflatex
.
\documentclass{article}
\usepackage{graphicx}
\usepackage{draftwatermark}
\SetWatermarkText{\includegraphics{test.png}}
\begin{document}
Some text.
\end{document}
There is also the eso-pic package, but I have not used it myself.
Try xwatermark package. It allows you to specify the positions (on the page) of the watermarks - for graphics and text.
\documentclass{article}
\makeatletter
\usepackage[dvipsnames]{xcolor}
\usepackage[colorlinks,pdfview=FitB]{hyperref}
\usepackage[printwatermark]{xwatermark}
\thispagestyle{empty}
% Local watermark locations:
\watermarkpaths{{./}{./Graphics/}}
% One combined watermark (graphics + text). This is what you need. The key
% to note here is 'textontoppic':
\newwatermark[
oddpages,coordunit=pc,fontfamily=put,textcolor=red,
fontsize=2cm,textalign=center,textangle=29,picangle=0,
textxpos=-1,textypos=1,picxpos=0,picypos=0,
textontoppic,picbb=20 21 590 400,
picscale=.6,picfile=comet1,picfileext=pdf
]{Confidential}
% Repeated combined watermark (graphics + text):
\xwmgetpicturesize[scale=.5,viewport=20 21 590 400]{comet1}
\def\twidth#1{.5\paperwidth#1\widthofpic}
\def\theight#1{.5\paperheight#1\heightofpic}
\repeatwatermarks[Page=\thepage]{%
oddpages,coordunit=pc,picbb=20 21 590 400,picscale=.5,picfile=comet1,
textontoppic,fontsize=2.5cm,textcolor=white
}{%
picxpos=-\twidth{+}/2,picypos=-\theight{+}/2,
textxpos=-\twidth{+}/2,textypos=-\theight{+}/2;
picxpos=-\twidth{+}/2,picypos=\theight{-}/2,
textxpos=-\twidth{+}/2,textypos=\theight{-}/4;
picxpos=\twidth{-}/2,picypos=-\theight{+}/2,
textxpos=\twidth{-}/2,textypos=-\theight{+}/2;
picxpos=\twidth{-}/2,picypos=\theight{-}/2,
textxpos=\twidth{-}/2,textypos=\theight{-}/4
}
\makeatother
\begin{document}
xx
\end{document}
\newpage
yy
\newpage
zz
\newpage
aa
\newpage
bb
\end{document}
Best Answer
I used the
background
package to watermark versions of a document with\today
. It uses tikz nodes which allows a lot of customizations but has useful default values so you don't have to care:MWE: