60

I'd like to insert a PDF, but make it "lighter" by setting the opacity to 10% ("background watermark"). How to do that? A solution that works with texlive 2011 would be great.

I use pdflatex and includegraphics to insert the image.

4
  • 1
    I suggest you to take a look at PGF/Tikz mirrors.ctan.org/graphics/pgf/base/doc/generic/pgf/… (search Referencing the Current Page Node - Absolute Positioning) Dec 11 '12 at 8:35
  • 1
    I hope there is a solution without loading the whole tikz-pgf bundle into my tiny document...
    – topskip
    Dec 11 '12 at 8:37
  • 1
    @topskip Certainly possible, all you have to do is use TikZ for a demo, \tracingall the resulting output and see what specials to use :-)
    – Joseph Wright
    Dec 11 '12 at 8:40
  • 2
    @JosephWright I guess my harddrive is too small for the resulting log file :)
    – topskip
    Dec 11 '12 at 8:47
64

You could use the transparent package to set the opacity of your background image:

enter image description here

\documentclass{article}
\usepackage{lipsum}

\usepackage{graphicx}
\usepackage{transparent}
\usepackage{eso-pic}
\AddToShipoutPicture*{
    \put(0,0){
        \parbox[b][\paperheight]{\paperwidth}{%
            \vfill
            \centering
            {\transparent{0.4}\includegraphics[width=0.5\textwidth]{drawing}}%
            \vfill
        }
    }
}

\begin{document}
\lipsum
\end{document}

In case the transparency doesn't work with your image for some reason, you could instead put a semi-transparent white box over your image:

\documentclass{article}
\usepackage{lipsum}

\usepackage{graphicx}
\usepackage{transparent}
\usepackage{eso-pic}
\AddToShipoutPicture*{
    \put(0,0){
        \parbox[b][\paperheight]{\paperwidth}{%
            \vfill
            \centering
            \includegraphics[width=0.5\textwidth]{drawing}%
            \vfill
        }
    }
    \put(0,0){%
        \transparent{0.7}\textcolor{white}{\rule{\paperwidth}{\paperheight}}
    }
}

\begin{document}
\lipsum
\end{document}
5
  • 2
    First tests show that this works for some images only. "My" image of course does not work ...
    – topskip
    Dec 11 '12 at 9:19
  • 1
    @topskip: Oh, that's interesting. Have you made sure to compile the document twice?
    – Jake
    Dec 11 '12 at 9:25
  • 4
    @topskip: Workaround: Put a semi-transparent white rectangle above the image but below the text. See my edit.
    – Jake
    Dec 11 '12 at 9:29
  • 5
    Sadly does not work with beamer
    – Jay
    Feb 28 '17 at 12:36
  • Probably obvious, but: larger values for transparent mean more transparent.
    – Chernoff
    Feb 23 at 3:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.