[pdftex] draftcopy

Martin Schroeder martin at oneiros.de
Fri Jan 25 11:57:51 CET 2002


On 2002-01-24 18:08:16 -0500, Peter Cholak wrote:
> Is there anyway to get the functionality of the package draftcopy using
> pdflatex?  (Draftcopy uses postscript to watermark each page with "draft"  
> or other words.)

This can all be done with the help of eso-pic, color and graphicx:
--------------------
\documentclass{article}
\usepackage{eso-pic}
\usepackage{graphicx}
\usepackage{color}
\usepackage{type1cm}

\makeatletter
  \AddToShipoutPicture{%
    \setlength{\@tempdimb}{.5\paperwidth}%
    \setlength{\@tempdimc}{.5\paperheight}%
    \setlength{\unitlength}{1pt}%
    \put(\strip at pt\@tempdimb,\strip at pt\@tempdimc){%
      \makebox(0,0){\rotatebox{45}{\textcolor[gray]{0.75}{\fontsize{5cm}{5cm}\selectfont{Draft}}}}
    }
}
\makeatother

\begin{document}
Text
\end{document}
--------------------

Now if somebody would please update the draftcopy package... :-)

Best regards
        Martin
-- 
                http://www.tm.oneiros.de/calendar/2002/




More information about the pdftex mailing list