summaryrefslogtreecommitdiff
path: root/texmf-dist/doc/latex/docassembly/examples/watermark-text.tex
blob: 4b4c123bc20d5086d06ed90cd3bd4b4d767984ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
\documentclass{article}
\usepackage{docassembly}
\usepackage{lipsum}

\hypersetup{pdfpagemode=UseNone}

% Look in the Adobe Acrobat JavaScript manual under the addWatermarkFromText to see all the possible parameters.
\begin{docassembly}
\addWatermarkFromText({
    cText: "Confidential",
    aColor: color.red,
    nFontSize: 72,
    cFont:font.HelvB,
    bOnTop:false,
    bOnPrint:false,
    nOpacity: 0.2,
    nRotation: 45
});
\executeSave();
\end{docassembly}

\begin{document}

\lipsum[1-30]

\end{document}