hey all.
used <cfpdf action="thumbnail" scale="100" ... /> to generate a full size
image from a PDF.  unfortunately, the image is at 72dpi and I have need for
it to be slightly... larger.

looked into dan switzer's UDF where he invoked jpedal directly (jpedal is, i
believe, what cfpdf uses behind the scenes for the pdf to image action):
http://blog.pengoworks.com/index.cfm/2008/4/8/UDF-for-converting-a-PDF-page-to-Images-using-CF8-and-Java

gave me a better handle on what is happening, but still unable to set the
DPI to something like 96 or better.  looked at the javadoc for jpedal and
saw there's a "multiplyer" variable that did help to scale the image up in
dimension... but the DPI is still at 72.

this is what i've got right now as it relates to trying to manipulate the
DPI:

<cfscript>
pdfDecode = createObject("java",
"org.jpedal.PdfDecoder").init(javaCast("boolean", true));
pdfDecode.dpi = javaCast('int', 96);
....
</cfscript>

i've set the value as high as 300 just to see if there was any difference,
but when i open the resulting image in fireworks i'm still seeing a reported
dpi of 72.

anybody do any work with jpedal and have any ideas on how to manipulate the
DPI when calling getPageAsImage()?

thanks!


-- 
I have failed as much as I have succeeded. But I love my life. I love my
wife. And I wish you my kind of success.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314204
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to