Office2Flash SDK
Powerful and rapid Office to PDF and Flash converting solution for your applications and Websites - Release v2.0

Software Product: conaito Office2Flash SDK - Version: 2.0
Author: conaito Technologies
Web:
http://www.conaito.com
Email: support@conaito.com

Installation Instructions
1. Install conaito Office2Flash SDK.
2. Download the Open Office PORTABLE Edition (recommend). The conaito Office2Flash SDK working as well with non-Portable Edition but we highly recommend to use the Portable Edition.
3. Install Open Office Portable. After Installation you need enter some registration data (or not), after them run it 1 time more (because another question comes). Now Open Office is ready.
4. Check the demos (you find in the debug folders of the sample or in bin folder of the ASP.NET sample) a file office2flash.config. Edit it and add the correct path to your Open Office. Make sure that you use "/" instead of "\" on path. Save it.
Alternative you can use the conaito Configuration Wizard. This Wizard help you to shortly configure all the samples and copy the required files to the sample folders.
5. Now you can try the demo.
6. On ASP.Net demo you may need to set additional write permissions to the data folder.

Information about the Trial license (license.lic)
This file includes the Trial license. If the license is expired or not longer valid, please contact us on eMail: support@conaito.com or http://www.conaito.com/support.asp

System Requirements:
· Operating system: Windows XP, Windows 2003, Windows Vista, Windows 7
· Java JRE (min. 1.6)
· OpenOffice Portable 3.1 (or better) or installed Open Office 3.1 (or better).
We highly recommend to use OpenOffice Portable

Getting started

Command line Edition
Usage: office2flash..exe [-o outputDirectory [-option2...]] file1 [file2 [file3...]]

Java Edition
Usage: java -jar office2flash.jar [-o outputDirectory [-option2...]] file1 [file2 [file3...]]

Converts all given input files to PDF and Flash.  As default the output filenames have the same base
filenames as the input files and the extension "pdf".

PDF files on the input will directly converted to Flash.

INPUT OPTIONS (command line)

-o outputDirectory
Set the output directory of converted files given by outputDirectory.
If directory doesn´t  exists, it will created automatically.
default:  The target directory is same as where office2flash.exe is called.

-single
Set converting process to single SWF file output.
default:  Each page will convert to single SWF file.

-flashonly
Set converting process to SWF file only (no PDF output).
default:  SWF and PDF will be created.
Note: See also office2flash.config

-pid processID
Set a process ID for converting process given by processID.
If processID is given and -Traces set to false output is 1 for success or 0 for failed.
default:  Not used.
Example: -pid 10 (output is 10=1 on success and 10=0 on failed)  
Note: See also -Traces (office2flash.config). If -Traces set to true -pid process status output is ignored and only -Traces related information will output.


-d
Causes original input files to be deleted after successful processing.
default:  Not used.


CONFIG FILE OPTIONS (office2flash.config)

ooLibPath OpenOfficeProgramDirectory
Set the directory of OpenOffice "program" folder (location of soffice.exe).
Example for OpenOffice Installed Edition:
ooLibPath=C:/Program Files/OpenOffice.org 3/program
Example for OpenOffice Portable Edition: ooLibPath=OpenOfficePortable/App/openoffice/program/
Note: In this case OpenOffice Portable is placed in same directory as Office2Flash.exe

ooConnectionType type
Set the type of connection to OpenOffice.
1 = Boot Connector (load OpenOffice automatically from 'ooLibPath'), ooHostIP and ooHostPort are not required, 'ooClose' need set to true
2 = Socket Connector (OpenOffice is loaded manual and accept socket), ooHostIP and ooHostPort are required, 'ooClose' can set to false
Example: ooConnectionType=1
Note: To load OpenOffice manual you need to call commandline as example:
C:\Program Files\OpenOffice.org 3\program\soffice" -invisible -nologo -display:5 -headless -nofirststartwizard -accept="socket,host=127.0.0.1,port=8100;urp;"
or use the provided '
startOpenOffice.bat'

ooHostIP
Set the Host IP of OpenOffice. Its only required if ooConnectionType is set to 2.
This property must be same IP as OpenOffice is loaded (see manual loading of OpenOffice - ooConnectionType).
Example: ooHostIP=127.0.0.1
Note: It must set to ooHostIP=127.0.0.1 and OpenOffice must be loaded on same system.

ooHostPort
Set the Host Port of OpenOffice. Its only required if ooConnectionType is set to 2.
This property must be same Port as OpenOffice is loaded (see manual loading of OpenOffice - ooConnectionType).
Example: ooHostPort=8100
Note: OpenOffice must be loaded on same system.

ooClose
True set to close OpenOffice after converting process. False let OpenOffice loaded after converting process.
Example: ooClose=true
Note: It must set to true if ooConnectionType=1. On ooConnectionType=2 it can be false to let OpenOffice loaded for next converting process.

Traces
True turn converting process information output to on. False set to converting process without information.
Example: Traces=true
Note: See also -pid (command line options).

flashonly
Set -flashonly (see command line options) statically. If set to true then always -flashonly is used
If set to false, command-line settings will be used.
Example: flashonly=true

customSwfName
True turn option on to use custom SWF output file names given by swfName (see swfName option).
If set to false,
the SWF output filenames have the same base filenames as the input.
Example: customSwfName=false
Note: In this case (false) input file is "test.doc" the SWF output file will be test_doc_0001.swf [test_doc_0002.swf...] and "test_doc.swf" on -single option usage.

swfName
Set custom SWF output file names (to use it set customSwfName to true).
Example: swfName=output
Note: In this case "output" SWF output file will be output0001.swf [output0002.swf...] and
"output.swf" on -single option usage.

customXMLName
True turn option on to use custom XML output file names given by xmlName (see xmlName option).
If set to false,
the XML output filename have the same base filename as the input.
Example: customXMLName=false
Note: In this case (false) input file is "test.doc" the XML output file will be "test_doc.xml".

xmlName
Set custom XML output file names (to use it set customSwfName to true).
Example: xmlName=index
Note: In this case "index" XML output file will be "index.xml".

thumbCreation
True turn option on to convert Thumbnail of first page.
Example: thumbCreation=true

thumbType
Set output format of Thumbnail image. Possible image formats: png, jpeg, gif, bmp
Example: thumbType=png

thumbMaxWidth
Set the max width of Thumbnail image. The Thumbnail sizes will be proportional (aspect ratio).  
Example: thumbMaxWidth=120

thumbMaxHeight
Set the max height of Thumbnail image. The Thumbnail sizes will be proportional (aspect ratio).
Example: thumbMaxHeight=90


Any Questions?
Our Knowledgebase/ Helpdesk is the best way for your questions.
Please feel free to contact the conaito Support Team in case of any question.
Our Support: http://www.conaito.com/support.asp

conaito Technologies
http://www.conaito.com