Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question
    
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) –  Lionel MANSUY Dec 11 '12 at 8:35
    
I hope there is a solution without loading the whole tikz-pgf bundle into my tiny document... –  topskip Dec 11 '12 at 8:37
    
@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
1  
@JosephWright I guess my harddrive is too small for the resulting log file :) –  topskip Dec 11 '12 at 8:47

1 Answer 1

up vote 21 down vote accepted

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}
share|improve this answer
    
First tests show that this works for some images only. "My" image of course does not work ... –  topskip Dec 11 '12 at 9:19
    
@topskip: Oh, that's interesting. Have you made sure to compile the document twice? –  Jake Dec 11 '12 at 9:25
1  
@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
    
Workaround looks fine :) Thanks! –  topskip Dec 11 '12 at 9:48

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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