Package org.ghost4j.converter
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 int
Ghostscript device to use to perform conversion.private int
PostScript language level: 1, 2 or 3.static final int
static final int
static final int
private PaperSize
Define standard paper size for the generated PDF file.Fields inherited from class org.ghost4j.AbstractRemoteComponent
maxProcessCount, processCount
Fields inherited from class org.ghost4j.AbstractComponent
supportedDocumentClasses
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
int
static void
Main method used to start the converter in standalone 'slave mode'.void
run
(Document document, OutputStream outputStream) void
setDevice
(int device) void
setLanguageLevel
(int languageLevel) void
setPaperSize
(PaperSize paperSize) Methods inherited from class org.ghost4j.converter.AbstractRemoteConverter
convert, remoteConvert, startRemoteConverter
Methods inherited from class org.ghost4j.AbstractRemoteComponent
buildJavaFork, getMaxProcessCount, getProcessCount, getRemoteComponent, isStandAloneModeSupported, setMaxProcessCount, startRemoteServer, waitForFreeProcess
Methods inherited from class org.ghost4j.AbstractComponent
assertDeviceSupported, assertDocumentSupported, copySettings, extractSettings, isDeviceSupported
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ghost4j.Component
copySettings, extractSettings
Methods inherited from interface org.ghost4j.converter.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:
run
in classAbstractRemoteConverter
- Throws:
IOException
ConverterException
DocumentException
-
getLanguageLevel
public int getLanguageLevel() -
setLanguageLevel
public void setLanguageLevel(int languageLevel) -
getPaperSize
-
setPaperSize
-
getDevice
public int getDevice() -
setDevice
public void setDevice(int device)
-