Highlighted

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

New Here ,
Sep 13, 2019

Copy link to clipboard

Copied

Hello,

 

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(PDFDocHandler.java:4264) at coldfusion.pdf.PDFDocHandler._extractImages(PDFDocHandler.java:4177) at coldfusion.pdf.PDFDocHandler.extractImages(PDFDocHandler.java:4073) at coldfusion.pdf.PDFDocOperation.thumbnail(PDFDocOperation.java:2965) at coldfusion.tagext.lang.PDFTag.doEndTag(PDFTag.java:1990) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:3708)

 

 

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 (https://www.oracle.com/technetwork/es/java/javase/downloads/jce-7-download-432124.html), to no avail.
 
We currently coded a imagemagik-based workaround, but we would like to continue working with cfpdf. Any clue?
 
TIA,
 
 
TOPICS
Advanced techniques

Views

78

Likes

Translate

Translate

Report

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

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

New Here ,
Sep 13, 2019

Copy link to clipboard

Copied

Hello,

 

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(PDFDocHandler.java:4264) at coldfusion.pdf.PDFDocHandler._extractImages(PDFDocHandler.java:4177) at coldfusion.pdf.PDFDocHandler.extractImages(PDFDocHandler.java:4073) at coldfusion.pdf.PDFDocOperation.thumbnail(PDFDocOperation.java:2965) at coldfusion.tagext.lang.PDFTag.doEndTag(PDFTag.java:1990) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:3708)

 

 

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 (https://www.oracle.com/technetwork/es/java/javase/downloads/jce-7-download-432124.html), to no avail.
 
We currently coded a imagemagik-based workaround, but we would like to continue working with cfpdf. Any clue?
 
TIA,
 
 
TOPICS
Advanced techniques

Views

79

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Sep 13, 2019 0

Have something to add?

Join the conversation