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:

  1. Configure Internet Information Services (IIS):
    1. Create a virtual directory or a web site in IIS
    2. Copy the contents of the sample folder to the directory mapped to the virtual directory or root web site directory you created earlier
    3. 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.
  2. 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:

  1. Open the sample page in the browser by navigating to index.php page
  2. Click Browse and select a document to convert to Flash
  3.  Click Convert. The conversion should take place and the converted document should be shown in the browser after conversion is completed
  4.  To convert another document, repeat steps 2-4

Copyright (C) Print2Flash Software. All rights reserved

www.print2flash.com