org.extex.backend.documentWriter.postscript.converter
Interface PsConverter

All Known Implementing Classes:
AbstractConverter, PsBasicConverter, PsBoxConverter

public interface PsConverter

This interface describes the ability to translate some nodes into PostScript code.

Version:
$Revision: 5923 $
Author:
Gerd Neugebauer

Method Summary
 void init(HeaderManager header, FontManager fontManager)
          Perform some initializations for each document.
 byte[] toPostScript(Page page)
          Translate nodes into PostScript code.
 void writeHeaders(java.io.PrintStream out)
          Write the header to the target stream.
 

Method Detail

init

void init(HeaderManager header,
          FontManager fontManager)
          throws java.io.IOException
Perform some initializations for each document.

Parameters:
header - the header manager
fontManager - the font manager
Throws:
java.io.IOException - in case of an IO exception

toPostScript

byte[] toPostScript(Page page)
                    throws DocumentWriterException
Translate nodes into PostScript code.

Parameters:
page - the nodes to translate into PostScript code
Returns:
the bytes representing the current page
Throws:
DocumentWriterException - in case of an error

writeHeaders

void writeHeaders(java.io.PrintStream out)
                  throws java.io.IOException
Write the header to the target stream.

Parameters:
out - the target stream
Throws:
java.io.IOException - in case of an I/O error