71

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, 2012 at 8:35
  • 1
    I hope there is a solution without loading the whole tikz-pgf bundle into my tiny document...
    – topskip
    Dec 11, 2012 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, 2012 at 8:40
  • 2
    @JosephWright I guess my harddrive is too small for the resulting log file :)
    – topskip
    Dec 11, 2012 at 8:47

2 Answers 2

78

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}
7
  • 2
    First tests show that this works for some images only. "My" image of course does not work ...
    – topskip
    Dec 11, 2012 at 9:19
  • 1
    @topskip: Oh, that's interesting. Have you made sure to compile the document twice?
    – Jake
    Dec 11, 2012 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, 2012 at 9:29
  • 5
    Sadly does not work with beamer
    – Jay
    Feb 28, 2017 at 12:36
  • 1
    Undefined control sequence. Using Xelatex. l.4 {\transparent Oct 4, 2022 at 11:35
0

To use transparent with XeLaTeX, insert

\RequirePackage{pdfmanagement-testphase}
\DeclareDocumentMetadata{}

at the very beginning of the document (before \documentclass).

See this issue for more details.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .