tracker issue : CF-4205495

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

CFPDF throws an 'wrong password' error when trying to generate a thumbnail from a password protected file

| View in Tracker

Status/Resolution/Reason: To Track//PRHaveInfo

Reporter/Name(from Bugbase): ERNESTO R. / ()

Created: 10/21/2019

Components: Document Management, PDF manipulation

Versions: 2016

Failure Type: Non Functioning

Found In Build/Fixed In Build: 2016.0.11.314546 /

Priority/Frequency: Normal / All users will encounter

Locale/System: English / Linux CentOS 6.4

Vote Count: 0

Problem Description: after updating from Update 8 to Update 11, <cfpdf> throws an error while trying to generate a thumbnail from a password protected file. Non protected files worked fine. Same files with same passwords on Update 8 worked fine. Other operations with protected PDF files hasn't been tested, but they could also show the same behaviour.

Steps to Reproduce: <cfpdf action="thumbnail" source="#filename#" password="mypassword" destination="#outputPath#" pages="1" scale="30" format="jpeg" resolution="high" overwrite="Yes">

Where filename is a password protected PDF file, with "mypassword" as password.

Actual Result: Error: "An error occurred during THUMBNAIL operation in &lt;CFPDF&gt;. Error: The password provided is either wrong or does not have sufficient permission to perform this action. <br>The error occurred on line 1."

Expected Result: jpg file generated and stored on #outputPath#.

Any Workarounds: none found based on CF exclusively. Function recoded to call imagemagick convert function via <cfexecute>.

Attachments:

Comments:

Forget to add: protected files allows for impression in high quality.
Comment by ERNESTO R.
31677 | October 23, 2019 11:53:00 AM GMT
Hi,   I was able to run this code successfully on multiple versions of CF for multiple update levels and couldn't repro the issue Can you please check if you are able to manually open the PDF using the same password as given in the code? Maybe the password has changed?   Thanks, Kailash
Comment by Kailash B.
31713 | October 31, 2019 07:21:04 AM GMT
Hi Kailash, Thanks for your reply. Yes, I can open and manipulate the file with the password used in the code. I also tried changing the password in both file and code. I attach a sample PDF file, with the password '123456'.
Comment by ERNESTO R.
31714 | October 31, 2019 03:38:28 PM GMT