Coldfusion support

Using Print2Flash Document API
Post Reply
alfarhan
Posts: 1
Joined: Tue Jan 06, 2009 4:17 am

Coldfusion support

Post by alfarhan » Tue Jan 06, 2009 4:23 am

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?

theunknown
Posts: 1
Joined: Mon Mar 26, 2012 2:52 pm

Re: Coldfusion support

Post by theunknown » Mon Mar 26, 2012 2:53 pm

I'm interested in this option as well. Does your Server version work with CF?

staff
Posts: 281
Joined: Sat Dec 15, 2007 4:48 pm

Re: Coldfusion support

Post by staff » Tue Apr 03, 2012 5:49 am

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

Post Reply