Class PSConverter
java.lang.Object
org.ghost4j.AbstractComponent
org.ghost4j.AbstractRemoteComponent
org.ghost4j.converter.AbstractRemoteConverter
org.ghost4j.converter.PSConverter
- All Implemented Interfaces:
Component, Converter, RemoteConverter
PS converter.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intGhostscript device to use to perform conversion.private intPostScript language level: 1, 2 or 3.static final intstatic final intstatic final intprivate PaperSizeDefine standard paper size for the generated PDF file.Fields inherited from class AbstractRemoteComponent
maxProcessCount, processCountFields inherited from class AbstractComponent
supportedDocumentClasses -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintstatic voidMain method used to start the converter in standalone 'slave mode'.voidrun(Document document, OutputStream outputStream) voidsetDevice(int device) voidsetLanguageLevel(int languageLevel) voidsetPaperSize(PaperSize paperSize) Methods inherited from class AbstractRemoteConverter
convert, remoteConvert, startRemoteConverterMethods inherited from class AbstractRemoteComponent
buildJavaFork, getMaxProcessCount, getProcessCount, getRemoteComponent, isStandAloneModeSupported, setMaxProcessCount, startRemoteServer, waitForFreeProcessMethods inherited from class AbstractComponent
assertDeviceSupported, assertDocumentSupported, copySettings, extractSettings, isDeviceSupportedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
copySettings, extractSettingsMethods inherited from interface RemoteConverter
setMaxProcessCount
-
Field Details
-
OPTION_DEVICE_AUTO
public static final int OPTION_DEVICE_AUTO- See Also:
-
OPTION_DEVICE_PSWRITE
public static final int OPTION_DEVICE_PSWRITE- See Also:
-
OPTION_DEVICE_PS2WRITE
public static final int OPTION_DEVICE_PS2WRITE- See Also:
-
device
private int deviceGhostscript device to use to perform conversion. -
languageLevel
private int languageLevelPostScript language level: 1, 2 or 3. -
paperSize
Define standard paper size for the generated PDF file. This parameter is ignored if a paper size is provided in the input file. Default value is "letter".
-
-
Constructor Details
-
PSConverter
public PSConverter()
-
-
Method Details
-
main
Main method used to start the converter in standalone 'slave mode'.- Parameters:
args-- Throws:
ConverterException
-
run
public void run(Document document, OutputStream outputStream) throws IOException, ConverterException, DocumentException - Specified by:
runin classAbstractRemoteConverter- Throws:
IOExceptionConverterExceptionDocumentException
-
getLanguageLevel
public int getLanguageLevel() -
setLanguageLevel
public void setLanguageLevel(int languageLevel) -
getPaperSize
-
setPaperSize
-
getDevice
public int getDevice() -
setDevice
public void setDevice(int device)
-