fi.karppinen.ooo
Class Converter

java.lang.Object
  extended by fi.karppinen.ooo.Converter

public class Converter
extends Object

Converts an HTML file into PDF, OOo Writer, MS Word or RTF formats by inserting it into an OOo Writer template.

Version:
$Id: Converter.java,v 1.1 2006/10/30 20:00:08 hsivonen Exp $
Author:
hr, hsivonen

Field Summary
private static org.apache.log4j.Logger log4j
           
private  String stringHost
          Specifies the host for the office server.
private  String stringPort
          Specifies the port for the office server.
 
Constructor Summary
Converter()
           
 
Method Summary
 void convertTextWithInsert(File template, File htmlDoc, File target)
          Performs the conversion.
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log4j

private static final org.apache.log4j.Logger log4j

stringHost

private String stringHost
Specifies the host for the office server.


stringPort

private String stringPort
Specifies the port for the office server.

Constructor Detail

Converter

public Converter()
Method Detail

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception

convertTextWithInsert

public void convertTextWithInsert(File template,
                                  File htmlDoc,
                                  File target)
                           throws Exception
Performs the conversion. The target format is sniffed from the target file name.

Parameters:
template - The template
htmlDoc - The document to convert
target - The destination file
Throws:
Exception