• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

New Here ,
Sep 13, 2019 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

198

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
community guidelines
no replies

Have something to add?

Join the conversation
Resources
Documentation