org.allcolor.yahp.cl.converter.oo
Class COOoConverter

java.lang.Object
  extended by org.allcolor.yahp.cl.converter.oo.COOoConverter

public class COOoConverter
extends java.lang.Object

Convert an html doc to pdf with OOo

Version:
v0.94
Author:
Quentin Anciaux

Field Summary
private  COOoConnection connection
          connection handle to ooo
private static org.apache.log4j.Logger log
          used for logging
private static com.sun.star.beans.PropertyValue[] NO_VAL_PROP
          OOo empty property
private static com.sun.star.beans.PropertyValue[] OUTPUT_PROP
          OOo properties to set
 
Constructor Summary
COOoConverter(COOoConnection connection)
          Creates a new COOoConverter object.
 
Method Summary
 void convert(java.net.URI input, java.net.URI output)
          Convert the input html doc into output pdf doc
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final org.apache.log4j.Logger log
used for logging


OUTPUT_PROP

private static final com.sun.star.beans.PropertyValue[] OUTPUT_PROP
OOo properties to set


NO_VAL_PROP

private static final com.sun.star.beans.PropertyValue[] NO_VAL_PROP
OOo empty property


connection

private COOoConnection connection
connection handle to ooo

Constructor Detail

COOoConverter

public COOoConverter(COOoConnection connection)
Creates a new COOoConverter object.

Parameters:
connection - connection handle to ooo
Method Detail

convert

public void convert(java.net.URI input,
                    java.net.URI output)
             throws java.io.IOException
Convert the input html doc into output pdf doc

Parameters:
input - the input document
output - the output document
Throws:
java.io.IOException - if the output document is not writable (or the filter name is wrong)
java.lang.RuntimeException - if the input document is not found