I’m running on 188.8.131.52 using the latest PDF extension 184.108.40.206.
This is the code that renders the output below. I’m dumping the outPath and proving that both the pdf file and the watermark image I want to use exist before executing the cfpdf tag, which blows up. I can’t determine if the combination of attributes is incorrect for the addWatermark action, or if this is a bug in system. The pdf file opens correctly so I doubt it’s corrupt, so I’ve run out of things to try. If anyone has experience adding watermarks to PDFs, let me know how you pulled it off . I’ll attempt to add a screenshot of the error I get (or paste it in if that fails).
<cfif url.draft EQ 1> <cfscript> WriteDump(outPath); WriteDump(fileexists(outPath)) WriteDump(fileexists("/Users/johnbarbic/workspace/centerline/wwwroot/images/po-watermark.png")); </cfscript> <cfpdf action="addWatermark" opacity="6" source="#outPath#" image="/Users/johnbarbic/workspace/centerline/wwwroot/images/po-watermark.png" destination="/Users/johnbarbic/Desktop/test.pdf" overwrite="yes"> </cfif>