Should be org.jpedal. rest of path On Jan 24, 2011 7:18 AM, "Stefan Richter" <[email protected]> wrote: > > I'm trying to use a Java library called jpedal (http://www.jpedal.org) in order to convert PDF files to images. The following works great from the commandline on my Mac: > > java -cp ./jpedal_trial.jar org/jpedal/examples/images/HiResThumbnailExtractor "test.pdf" "jpg" > > However I'm not sure how to invoke the same from CF. I added the jpedal trial jar to ColdFusion9/lib and then tried the following: > <cfset jpedal = createObject("java","org/jpedal/examples/images/HiResThumbnailExtractor") /> > and got the error: > An exception occurred while instantiating a Java object. The class must not be an interface or an abstract class. Error: IllegalName: org/jpedal/examples/images/HiResThumbnailExtractor. > > I've spoken to the developer of jpedal, Mark Stephens, who told me that HiResThumbnailExtractor is not an interface or abstract class. > > As some of you may know, jpedal is already part of CF as Adobe have licensed the library for some of their PDF handling. I wondered if this was causing problems, but even after removing the original jpedal.jar from CF I got the same error. > I was using CFPDF up until now to do the conversion but find the resulting images not good enough in terms of quality. For example even after specifying scale="100" in cfpdf, the resulting images are smaller than the original PDF. > > Any tips on how I can use the .jar file successfully would be much appreciated. > > Regards, > > Stefan > > > > > >
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:341120 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

