|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.backend.documentWriter.itextpdf.PdfDocumentWriter
public class PdfDocumentWriter
Implementation of a pdf document writer with iText.
| Constructor Summary | |
|---|---|
PdfDocumentWriter(Configuration config,
DocumentWriterOptions options)
Creates a new object. |
|
| Method Summary | |
|---|---|
void |
close()
This method is invoked upon the end of the processing. |
void |
configure(Configuration config)
|
void |
enableLogging(java.util.logging.Logger logger)
|
java.lang.String |
getExtension()
Getter for the extension associated with this kind of output. |
void |
setFontFactory(CoreFontFactory factory)
Setter for the font factory. |
void |
setOutputStream(java.io.OutputStream writer)
Setter for the output stream. |
void |
setParameter(java.lang.String name,
java.lang.String value)
Setter for a named parameter. |
int |
shipout(Page page)
This is the entry point for the document writer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PdfDocumentWriter(Configuration config,
DocumentWriterOptions options)
config - The configurations.options - The options.| Method Detail |
|---|
public void close()
throws GeneralException,
java.io.IOException
close in interface DocumentWriterGeneralException - in case of a general exceptionjava.io.IOException - in case of an IO exceptionDocumentWriter.close()
public void configure(Configuration config)
throws ConfigurationException
ConfigurationExceptionorg.extex.framework.configuration.Configurable#configure(org.extex.framework.configuration.Configuration)public java.lang.String getExtension()
getExtension in interface DocumentWriterDocumentWriter.getExtension()public void setFontFactory(CoreFontFactory factory)
setFontFactory in interface FontAwarefactory - the font factoryFontAware.setFontFactory(org.extex.font.CoreFontFactory)public void setOutputStream(java.io.OutputStream writer)
setOutputStream in interface SingleDocumentStreamwriter - the output streamSingleDocumentStream.setOutputStream(java.io.OutputStream)
public void setParameter(java.lang.String name,
java.lang.String value)
setParameter in interface DocumentWritername - the name of the parametervalue - the value of the parameterDocumentWriter.setParameter(java.lang.String,
java.lang.String)
public int shipout(Page page)
throws GeneralException,
java.io.IOException
If the page is null then no page has to be shipped and 0
has to be returned.
shipout in interface DocumentWriterpage - the page to send
GeneralException - in case of a general exceptionjava.io.IOException - in case of an IO exceptionDocumentWriter.shipout(org.extex.typesetter.type.page.Page)public void enableLogging(java.util.logging.Logger logger)
org.extex.framework.logger.LogEnabled#enableLogging(java.util.logging.Logger)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||