The following example shows how to specify an image file as a watermark:
<cfpdf action="addWatermark" source="artBook.pdf" image="../cfdocs/images/artgallery/raquel05.jpg" destination="output.pdf" overwrite="yes">
By default, ColdFusion centers the image on the page, sets the opacity of the image to 3 out of 10 (opaque), and displays the image in the background of each page in the output file. In the following example, ColdFusion displays the watermark in the foreground, offset 100 pixels from the left margin of the page and 100 pixels from the bottom margin of the page. Because the opacity is set to 1, the image does not obscure the page content.
<cfpdf action="addWatermark" source="artBook.pdf" image="../cfdocs/images/artgallery/raquel05.jpg" destination="output.pdf" overwrite="yes" foreground="yes" opacity=1 showOnPrint="no" position="100,100">
For a complete list of attributes and settings, see the cfpdf tag in the CFML Reference.