Cfpdf action = thumbnail not working on Lucee 5


#1

Hi,

This was working fine on 4.5 but since I upgraded to 5.0.1.33-SNAPSHOT it
does not save the thumbnail. No error is generated, it is as if the code
is just not run. Please help, this creates our invoices and course
certificates.

<cfpdf 
        source="#cfdocument_report#" 
        pages="1" 
        action="thumbnail" 
        destination="#GetTempDirectory()#"
        imagePrefix="report_#URL.idobject#_#URL.idreport#" 
        format="png" 
        overwrite="true"
        transparent = "true"
        resolution="high"        
        scale="100">

Regards,
Chris


#2

I have tested this and cfpdf action thumbnail does not create thumbnails.

<cfpdf action="thumbnail" source="test.pdf" pages="1" imagePrefix="Cover" 
format="png" scale="50" resolution="low">

#3

Have you checked anything In the logs? In catalina.out?

Mark Drew

  • Sent by typing with my thumbs.

#4

Hi,

I have the same problem. Failing in Lucee 5.1.0.34 but working in Lucee 4.5.

I didn’t find any error or log.

Thanks.


#5

similarly, the upgrade from 4.5 to 5.1 has caused cfdocument with format of
“PDF” to fail to render png logos in our reports with the error
“Insufficient data for an image.” On PDFs where this happens, font
styles/faces then tend to get messed up as well.


#6

I had a similar issue a few days back, came out to be that PDF thumbnails
were created from a directory listing, which meant that CF would try to get
a thumbnail out of every file in that directory. Since you mentioned
no error, not sure if thats your case, but try making sure there is no
other file in the directory the PDF files for which the thumbnails will be
created are. Sometimes MAC os, creates hidden property files for each
folder, try listing the directory and dumping the result just to make sure.

Good Luck.


#7

What’s the status here?
I have the same problem on Lucee 5.1.1.65
nothing spotted in catalina.{dd}.log


#8

Bump!

Upgraded to 5.1.4.19 today to see if the blocking issue of pdf action=“protect” had been fixed (LDEV-1038). It has. Unfortunately, pdf action=“thumbnail” still does not work.


#9

You can try this alternative. It does not have all of the features, but does work for generating a JPG thumbnail.


#10

Wow. This is great. I started going down this path the other day. Thanks!