fr.fluxmedia.tmcontrib.serializer
Class PDFSerializer
java.lang.Object
fr.fluxmedia.transmorpher.engine.TProcess_Impl
fr.fluxmedia.transmorpher.engine.TProcessBasic
fr.fluxmedia.transmorpher.engine.TSerializer
fr.fluxmedia.tmcontrib.serializer.PDFSerializer
- All Implemented Interfaces:
- TProcess, java.lang.Runnable
public final class PDFSerializer
- extends TSerializer
This class allows transmorpher to produce pdf or ps.
To use this serializer, transmorpher has to know it.
To do this, just add the following declaration of defextern in the process file :
< defextern name="fop" class="fr.fluxmedia.transmorpher.tmcontrib.serializer.PDFSerializer/>
A fop serializer can now be declared in the process file :
< serialize id="outputPDF" type="fop" in="out1" >
< with-param name="file"> ../samples/fo-sample/output/${filename}.pdf < /with-param >
< with-param name="format"> pdf < /with-param >
< /serialize >
Available formats are :
Compiling: following libs are required
Running: following libs are required
- fop.jar
- batik.jar
- avalon-framework-4.0.jar
- logkit-1.0.jar
- Author:
- triolet
Field Summary |
protected Driver |
driver
The object which creates pdf,ps with fo |
protected org.xml.sax.ContentHandler |
handler
|
Method Summary |
org.xml.sax.ContentHandler |
getContentHandler()
Gets the contentHandler attribute of the PDFSerializer object |
void |
setOutputStream()
Sets the outputStream of this PDFSerializer object |
Methods inherited from class fr.fluxmedia.transmorpher.engine.TProcess_Impl |
getFatherName, getId, getIn, getIn, getIn, getName, getNameIn, getNameIn, getNameOut, getNameOut, getOut, getOut, getOut, getParameter, getParameterNames, getParameters, reset, setDebug, setFatherName, setId, setIn, setName, setOut, setParameter, setParameters |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
driver
protected Driver driver
- The object which creates pdf,ps with fo
handler
protected org.xml.sax.ContentHandler handler
PDFSerializer
public PDFSerializer(java.lang.String[] pIn,
Parameters pParam,
StringParameters pStaticAttributes)
- Constructor for the PDFSerializer object
- Parameters:
pIn
- in portspParam
- the parameters of this componentpStaticAttributes
- static attributes of this component
getContentHandler
public org.xml.sax.ContentHandler getContentHandler()
- Gets the contentHandler attribute of the PDFSerializer object
- Specified by:
getContentHandler
in class TSerializer
- Returns:
- The contentHandler value
setOutputStream
public void setOutputStream()
throws TMRuntimeException,
TMException,
org.xml.sax.SAXException
- Sets the outputStream of this PDFSerializer object
- Overrides:
setOutputStream
in class TSerializer
- Throws:
TMRuntimeException
- Description of the Exception
TMException
- Description of the Exception
org.xml.sax.SAXException
- Description of the Exception
..no bottom yet...