fi.karppinen.ooo
Class Converter
java.lang.Object
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
Converter
public Converter()
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 templatehtmlDoc
- The document to converttarget
- The destination file
- Throws:
Exception