de.dante.extex.backend.documentWriter.postscript.util
Interface PsConverter

All Known Implementing Classes:
PsBasicConverter, PsBoxConverter

public interface PsConverter

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

Version:
$Revision: 1.3 $
Author:
Gerd Neugebauer

Method Summary
 void init(HeaderManager header)
          Perform some initializations for each document.
 byte[] toPostScript(Page page, FontManager fontManager, HeaderManager headerManager)
          Translate nodes into PostScript code.
 

Method Detail

init

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

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

toPostScript

public byte[] toPostScript(Page page,
                           FontManager fontManager,
                           HeaderManager headerManager)
                    throws DocumentWriterException
Translate nodes into PostScript code.

Parameters:
page - the nodes to translate into PostScript code
fontManager - the font manager to inform about characters
headerManager - the container fro the headers
Returns:
the bytes representing the current page
Throws:
DocumentWriterException - in case of an error