Status/Resolution/Reason: Closed/Withdrawn/CannotReproduce
Reporter/Name(from Bugbase): Dave Levin / Dave Levin (Dave Levin)
Created: 11/17/2015
Components: Document Management
Versions: 10.0
Failure Type: Non Functioning
Found In Build/Fixed In Build: Final /
Priority/Frequency: Critical / All users will encounter
Locale/System: English / Windows 7 SP1 64-bit
Vote Count: 0
I discovered this problem when trying to use <cfpdf action="extracttext"> on a PDF. When I ran the operation I received an error message:
"Unable to instantiate com.adobe.internal.pdftoolkit.pdf.graphics.font.PDFToUnicodeCMap object from CosObject"
I knew the PDF was valid and I was able to manipulate it using other <cfpdf> actions as well as iText pdfReader, etc.
I did some digging in the cf-acrobat.jar file located in C:\ColdFusion10\cfusion\lib and noticed that PDFToUnicodeCMap.class was missing! Just to be sure I checked my other ColdFusion 10 installations and all of the servers were also missing that class in the cf-acrobat.jar file.
To test my theory I downloaded the class manually from here: http://www.java2s.com/Code/Jar/p/Downloadpdftranscoderjar.htm (you need to extract the class from "org.apache.fop.pdf.PDFToUnicodeCMap.class"). I then shut down ColdFusion services and added the class to the appropriate location in cf-acrobat.jar ("com.adobe.internal.pdftoolkit.pdf.graphics.font"). I then re-started ColdFusion services and re-ran my <cfpdf> extracttext operation again. It worked!
My guess is that someone must have accidentally forgot to add this file into the jar. Hopefully this should be a simple fix for the Adobe dev team. I have attached the offending PDF to this bug so you can replicate the issue yourself if you want. However a simple examination of cf-acrobat.jar should be a dead giveaway that this class is indeed missing.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4088535
External Customer Info:
External Company:
External Customer Name: Dave Levin
External Customer Email:
External Test Config: Windows 7 x64, IIS7, ColdFusion version: 10,0,17,295085
Attachments:
- November 18, 2015 00:00:00: 1_AAP_-_MCCALLA_HD_ALL_PURPOSE_CLEANER.pdf
- November 19, 2015 00:00:00: 2_PDFToUnicodeCMap.class
- November 19, 2015 00:00:00: 3_AAP_-_MCCALLA_HD_ALL_PURPOSE_CLEANER.pdf
Comments: