Page 1 of 1

Coldfusion support

Posted: Tue Jan 06, 2009 4:23 am
by alfarhan
Hi,

I want to enable my website visitors to upload their documents (.doc, .xls, .ppt, .pdf,..) and convert it on the fly like what you guys do to flash. Do you support that with coldfusion?

Re: Coldfusion support

Posted: Mon Mar 26, 2012 2:53 pm
by theunknown
I'm interested in this option as well. Does your Server version work with CF?

Re: Coldfusion support

Posted: Tue Apr 03, 2012 5:49 am
by staff
Yes. To convert a document with ColdFusion, you need to execute a code like this:

Code: Select all

<cfobject action="create" name="p2fServer" type="COM" class="Print2Flash3.Server2" />
<cfscript>
try {
  p2fServer.ConvertFile("#data.sourcefilename#","#data.outputfilename#");
}
catch(exception e){writeoutput(e);}
</cfscript>
Also, you need to configure Print2Flash Service as specified in this help topic: http://print2flash.com/help/SettingupAu ... ccount.php