CFPDF doesn't work with protected files after ColdFusion 2016 update

New Here ,
Sep 13, 2019 Sep 13, 2019

Copy link to clipboard




We have updated our CentOS ColdFusion 2016, from update 8 to update 11. Installation was successful, and the installation log shows 0 errors.


After that, one of our scripts, that generates a thumbnail from a password protected PDF, has stopped working.


Our code is 


<cfpdf action="thumbnail" source="#data.filename#" password="mypassword" destination="#sPathTemp#" pages="1" scale="30" format="jpeg" resolution="high" overwrite="Yes">



and the error is


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.


in more detail


coldfusion.pdf.PDFDocOperation$PDFUnAuthorisedOperationException: An error occurred during THUMBNAIL operation in &lt;CFPDF&gt;. at coldfusion.pdf.PDFDocHandler._extractSinglePDFImages( at coldfusion.pdf.PDFDocHandler._extractImages( at coldfusion.pdf.PDFDocHandler.extractImages( at coldfusion.pdf.PDFDocOperation.thumbnail( at coldfusion.tagext.lang.PDFTag.doEndTag( at coldfusion.runtime.CfJspPage._emptyTcfTag(



The password is, of course, correct, and thumbnail generation worked just fine before the update. After some forum digging, we have installed the Java Cryptography Extension (, to no avail.
We currently coded a imagemagik-based workaround, but we would like to continue working with cfpdf. Any clue?
Advanced techniques







Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation