|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.backend.documentWriter.itextpdf.TwoPassDocumentWriter
public class TwoPassDocumentWriter
Implementation of a pdf document writer with iText. The backend collect first all glyphs and after this, the backend for the pdf creation is called.
| Constructor Summary | |
|---|---|
TwoPassDocumentWriter(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)
Configure an object according to a given Configuration. |
void |
enableLogging(java.util.logging.Logger logger)
Setter for the 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. |
void |
setResourceFinder(ResourceFinder finder)
Setter for the resource finder. |
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 TwoPassDocumentWriter(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
configure in interface Configurableconfig - the configuration object to consider
ConfigurationException - in case that something went wrongConfigurable.configure(org.extex.framework.configuration.Configuration)public void enableLogging(java.util.logging.Logger logger)
enableLogging in interface LogEnabledlogger - the logger to useLogEnabled.enableLogging(java.util.logging.Logger)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 void setResourceFinder(ResourceFinder finder)
setResourceFinder in interface ResourceAwarefinder - the resource finderResourceAware.setResourceFinder(org.extex.resource.ResourceFinder)
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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||