how to create background watermark in CFReport

361 views Asked by At

I want how to create background watermark (especially Image) in CFReport just like appearing "Developer Edition" text in CFReport when we render if our CF version is developer edition.

2

There are 2 answers

0
Henry On BEST ANSWER

There is a special band called "Watermark" I think, but from what I remember it wasn't easy to position it.

3
Dale Fraser On

Not sure if that ability is available, you can probably just add an image to the section you would like the watermark and move it back in the layer order, however that will likely only span that section and not the entire page.

Additionally you can programatically add a watermark use

<cfpdf 
    action="addWatermark" 
    copyFrom="TTTraining.pdf" source="test.pdf" 
    rotation="15“   position="100,0" foreground="true" overwrite="yes" 
    destination="myPDFWatermark.pdf">