CFpdf Thumbnail Lock
I had this code running a long time on a cold fusion 8 server and no issues. The code basiclly processed pdf documents and created thumbnails from the pdf's. Now, whenever the code runs it puts a lock on the pdf document and can't continue and everytime the code runs it keeps adding locks. I also get this errror:
An error occurred during THUMBNAIL operation in the cfpdf tag.
I've tried cflock but nothing helps. Any ideas? Could it be a new type of pdf coming in? Could it be a patch that Cold Fudion 8 needs?
Code:
<cfsetting requestTimeOut = "999999">
<cfdirectory action="LIST" directory="d:\faxes\" name="GetData" filter="*.pdf">
<cfoutput>
<cfloop query="GetData">
<cfset v_file = "d:\faxes\#GetData.name#">
<cftry>
<cfpdf action="getinfo" source="#v_file#" name="fullPdf">
<cfset totalpages = fullPdf.TotalPages>
<cfpdf action="thumbnail"
source="#v_file#"
overwrite="yes"
destination="d:\faxes\"
scale=100
format="png">
<cffile action="DELETE" file="#v_file#">
<cfcatch type="Any">
#v_file#-#cfcatch.message#<br>
</cfcatch>
</cftry>
</cfloop>
</cfoutput>
Message was edited by: dadress20001
