Document to Flash Conversion Sample in PHP using an External Web Service
Sample function:
This
sample demonstrates converting uploaded documents on another server using
an external web service. It may be used for conversion of documents uploaded
to a non-Windows machine by relying on a web service running on a Windows
machine where Print2Flash is installed.
Installation instructions:
- Configure Internet Information Services (IIS):
- Create a virtual directory or a web site in IIS
- Copy the contents of the sample folder to the directory mapped to the
virtual directory or root web site directory you created earlier
- Grant Read and Write permissions to the uploadedfiles and convertedfiles
folders for the user under which IIS runs (usually IUSR_xxx)
Note: If you use another type of web server or installing the sample
on a non-Windows machine, refer to your web server manual for instructions
on configuring a web site or a virtual directory and setting up access rights.
- Setup web service URL. You may do this by modifying this line in the
index.php file:
$WebServiceURL="http://mysite.com/WebService.asmx?wsdl"
Note: A sample of such web service using ASP.NET is contained
in this SDK (see Automation\Samples\ASP.NET folder). If you use that sample
as an external web service, you need to specify the global URL of
WebService.asmx file.
Usage instructions:
- Open the sample page in the browser by navigating to
index.php page
- Click Browse and select a document to convert to Flash
-
Click Convert. The conversion should take place and the
converted document should be shown in the browser after conversion is completed
-
To convert another document, repeat steps 2-4