tracker issue : CF-4198321

select a category, or use search below
(searches all categories and all time range)
Title:

CFPDF watermark fails when provided encryption to cfdocument

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/PRNeedInfo

Reporter/Name(from Bugbase): gavy randhawa / gavy randhawa ()

Created: 02/08/2017

Components: Document Management, PDF manipulation

Versions: 10.0

Failure Type: Incorrectly functioning

Found In Build/Fixed In Build: 10 Final Latest Update /

Priority/Frequency: Normal / All users will encounter

Locale/System: ALL / Windows 10 64 bit

Vote Count: 0

Problem Description:
CFPDF watermrk fails when in cfdocument encryption is provided. the cfdocument code is writte witth format as pdf and encryption setup to 128 and then after the creation try to add a watermark using cfpdf and it fails with an error 
Steps to Reproduce:
here is the Following Code which Fails: 
<cfdocument format="PDF" name="myPdf" localurl="true" pagetype="legal" marginbottom="0" margintop="0" marginleft="0" marginright="0" encryption="128-bit">
	<h1>Header 1</h1>
	<h1>Header 2</h1>
</cfdocument>

<cfpdf action = "addwatermark"
	source ="myPdf"
	image="image.png"
	pages="1"
	name="myPdf"
	overwrite="true"	
	position="0,700" rotation="45" />
	
<cfcontent variable="#toBinary(myPDF)#" type="application/pdf" />
Actual Result:
Error: An error occurred during ADDWATERMARK operation in &lt;CFPDF&gt;.

Error: The password provided is either wrong or does not have sufficient permission to perform this action.
Expected Result:
Should provide an PDF with Image added
Any Workarounds:
Just remove encryption. I reported in Cold fusion 10 but it also fails in 11 and 2016 as well.

Attachments:

Comments:

Hi, You have set encryption without a password. Can you please try with a userpassword or ownerpassword and try adding watermark? Thanks, Kailash
Comment by Kailash B.
1223 | March 10, 2017 11:36:16 AM GMT
This was not a bug. Have provided a workaround to the end user Will reopen the bug if the issue still persists
Comment by Kailash B.
1224 | July 10, 2017 06:38:01 PM GMT