Wednesday, 5 November 2014

Coldfusion - How to add the watermark in the coldfusion?


For the existing PDF file you can add the watermark by the CFPDF tag as follows -
<cfpdf
    action="addWatermark"
    copyFrom="TTTraining.pdf" source="test.pdf"
    rotation="15“   position="100,0" foreground="true" overwrite="yes"
    destination="myPDFWatermark.pdf">

But I was searcing for the PDF file which I was creating runtime by using .cfr file and CFREPORT tag and I found that we can do it as follow –
1.       There is Special Band named Watermark in a report CFR file
2.       Add the image in the band and make sure that size (height and width) is little bit shorter than the report size.
That’s it no need of any other settings.Your PDF file will show the watermark.


No comments:

Post a Comment