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.
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.
To install the sample:
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 |