## Document to Flash/SWF and HTML/SVG Conversion Sample in Java

### Sample function:

This sample contains a simple Java program that is capable of converting any printable documents to Flash and HTML format using Print2Flash. The sample uses Print2Flash OLE Automation.

### Dependencies:

The sample employs Jacob library for Automation access. It can be downloaded from this page: http://sourceforge.net/projects/jacob-project/ Please refer to this page regarding usage and licensing terms of this library. The sample was tested with Jacob of version 1.15.

### Installation instructions:

To install the sample:

1. Unpack the sample folder to disk
2. Download and install Jacob library as described in their documentation:

### Usage instructions:

The sample program is a simple command line tool that needs a document file name supplied to it as a parameter. To launch it, you need to use a command line like this:

`java -Djava.library.path=C:\jacob-1.15 -cp C:\jacob-1.15\jacob.jar;C:\P2FSamples\Automation\Samples\Java TestPrint2Flash C:\docs\sample.doc`

You may need to change this command line to specify full paths to java.exe, jacob-1.15 directory and Java sample directory.

Copyright (C) Print2Flash Software. All rights reserved | www.print2flash.com