summaryrefslogtreecommitdiff
path: root/texmf-dist/doc/latex/docassembly/examples/watermark-file.tex
blob: c7b9f10f42d0cdb55213c3f81065deefb7d6413e (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
\documentclass{article}
\usepackage{docassembly}
\usepackage{lipsum}

\hypersetup{pdfpagemode=UseNone}

% Look in the Adobe Acrobat JavaScript manual under the addWatermarkFromFile to see all the possible parameters.
\begin{docassembly}
\retnAbsPathAs(_path);
_path += "/graphics/AeB_Logo.pdf";
\addWatermarkFromFile({
    bOnTop:false,
    bOnPrint:false,
    nOpacity: 0.2,
    nRotation: 90,
    cDIPath:_path
});
\executeSave();
\end{docassembly}

\begin{document}

\lipsum[1-30]

\end{document}