next up previous contents index
Next: Stamp Text, Dates and Up: Logos, Watermarks and Stamps Previous: Logos, Watermarks and Stamps   Contents   Index

Add a Watermark or Logo

The -stamp-on and -stamp-under operations stamp the first page of a source PDF onto or under each page in the given range of the input file. For example,
\begin{framed}
\small\verb!cpdf -stamp-on logo.pdf in.pdf odd -o out.pdf!
\end{framed}
stamps the file logo.pdf onto the odd pages of in.pdf, writing to out.pdf. A watermark should go underneath each page:
\begin{framed}
\small\verb!cpdf -stamp-under topsecret.pdf in.pdf -o out.pdf!
\end{framed}

The -combine-pages operation takes two PDF files and stamps each page of one over each page of the other. The length of the output is the same as the length of the ``under'' file. For instance:
\begin{framed}
\small\verb!cpdf -combine-pages over.pdf under.pdf -o out.pdf!
\end{framed}

Page attributes (such as the display rotation) are taken from the ``under'' file. For best results, remove any rotation differences in the two files using -upright and -mediabox first.



root 2008-12-01