[pdftex] Background text

Arun Kejariwal arun_kejariwal at hotmail.com
Tue Jul 29 19:19:57 CEST 2003


Hi,
    The following code creates a background name "Arun" with pslatex .. but 
pdflatex does not. How to get around this?

% Background text
\AtBeginDocument{\special{!userdict begin
/split {(pt) search { 3 1 roll pop pop } if cvr} def
%%%%%%%%%%% Definitions %%%%%%%%%%%%%%
/font /Palatino-Roman findfont 110 scalefont def
/grayvalue .8 def           % 1 is white
/angle 50 def               % rotation for the text
/bgtext (Arun) def   % background text
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
gsave font setfont 1000 1000 moveto
bgtext true charpath pathbbox grestore
3 -1 roll sub 3 1 roll sub neg
/breite exch def /hoehe exch def
/mx (\the\textwidth) split 2 div 72 add def
/my (\the\textheight) split 2 div 72 add def
/bop-hook { gsave grayvalue setgray font setfont
mx my translate angle rotate
breite -2 div hoehe -2 div moveto
bgtext show grestore
} def end
}}


Arun

_________________________________________________________________
MSN Messenger : discutez en direct avec vos amis ! 
http://www.msn.fr/msger/default.asp



More information about the pdftex mailing list