public class XmlConverter
extends java.lang.Object
Constructor and Description |
---|
XmlConverter(java.lang.String tempDirectory)
Creates an XmlConverter with the specified temporary directory
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getTempDir()
Retrieve the temp directory
|
static void |
renderToPDF(org.w3c.dom.Document xmlDoc,
java.io.File xslSource,
java.io.File pdfTarget)
Renders an XML file to PDF by using the specified XSLFO stylesheet.
|
static void |
renderToPDF(org.w3c.dom.Document xmlDoc,
java.io.File xslSource,
java.io.File pdfTarget,
java.lang.String[] paramNames,
java.lang.Object[] paramValues,
java.lang.String tempPath)
Renders an XML file to PDF by using the specified XSLFO stylesheet.
|
void |
setTempDir(java.lang.String s)
Set the temp directory
|
public XmlConverter(java.lang.String tempDirectory)
tempDirectory
- the temp directory where result HTML files will be placed.public static void renderToPDF(org.w3c.dom.Document xmlDoc, java.io.File xslSource, java.io.File pdfTarget) throws OCException
xmlDoc
- XML source filexslSource
- XSLFO source filepdfTarget
- the target PDF file to write toOCException
- if an error occurspublic static void renderToPDF(org.w3c.dom.Document xmlDoc, java.io.File xslSource, java.io.File pdfTarget, java.lang.String[] paramNames, java.lang.Object[] paramValues, java.lang.String tempPath) throws OCException
xmlDoc
- XML source filexslSource
- XSLFO source filepdfTarget
- the target PDF file to write toparamNames
- the names of any xsl parametersparamValues
- the values of any xsl parametersOCException
- if an error occurspublic java.lang.String getTempDir()
public void setTempDir(java.lang.String s)
s
- the temp dir