EVO HTML to PDF Samples
=======================

Each sample has a 'bin' folder where you can find the precompiled runnable JAR version of the sample and a 'src' folder where you can find the sample source code.

In order to run the samples you have to install first the EVO PDF Server. You can find the installation instructions in the 'readme.txt' file from root folder.


Build and Run Samples
=====================

To build a sample from source code you need to have a version of JDK installed and to make sure that its Bin folder is in path such that you can execute the compiler and the virtual machine from command line. 
For example, to compile the Getting Started demo for HTML to PDF located in 'samples\HtmlToPdf\GettingStarted\src' folder, launch a command shell and change the working directory to 'samples\HtmlToPdf\GettingStarted\src' then execute the following command:

	javac -classpath "..\..\..\..\evohtmltopdf-v14.0.jar" GettingStartedDemo.java

The compiled class files are produced in the same folder and you can run the following command to launch the demo application:

	java -classpath ".;..\..\..\..\evohtmltopdf-v14.0.jar" GettingStartedDemo

The demo applications requires to enter a Server IP in application user interface. This is the IP address of the EVO PDF Server you installed.


Running the Prebuilt Binaries
=============================

The demo applications are also compiled in auto executable Java JAR files in the 'bin' folder. If your operating system supports auto executable Java JAR files then you can simply double click the JAR file to run the application. 

You can also manually run the application from a command prompt. For example, to run the 'Getting Started' demo for HTML to PDF located in 'samples\HtmlToPdf\GettingStarted\bin' folder, launch a command shell and change the working directory to 'samples\HtmlToPdf\GettingStarted\bin' and then execute the following command:

	java -jar EvoHtmlToPdfDemo.jar

If the 'java' command is not in the path then you can add it to system path or you can use the full path of the 'java' virtual machine installed by the JRE.
