Package org.ghost4j.converter
Class PDFConverter
java.lang.Object
org.ghost4j.AbstractComponent
org.ghost4j.AbstractRemoteComponent
org.ghost4j.converter.AbstractRemoteConverter
org.ghost4j.converter.PDFConverter
- All Implemented Interfaces:
Component
,Converter
,RemoteConverter
PDF converter.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
Define auto rotate pages behaviour.private String
Define PDF version compatibility level (default is "1.4").static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
private PaperSize
Define standard paper size for the generated PDF file.private int
Define PDF settings to use.private boolean
Enable PDFX generation (default is false).private int
Define process color model.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
int
boolean
isPDFX()
static void
Main method used to start the converter in standalone 'slave mode'.void
run
(Document document, OutputStream outputStream) Run method called to perform the actual process of the converter.void
setAutoRotatePages
(int autoRotatePages) void
setCompatibilityLevel
(String compatibilityLevel) void
setPaperSize
(String paperSizeName) void
setPaperSize
(PaperSize paperSize) void
setPDFSettings
(int PDFSettings) void
setPDFX
(boolean PDFX) void
setProcessColorModel
(int processColorModel) 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_AUTOROTATEPAGES_NONE
public static final int OPTION_AUTOROTATEPAGES_NONE- See Also:
-
OPTION_AUTOROTATEPAGES_ALL
public static final int OPTION_AUTOROTATEPAGES_ALL- See Also:
-
OPTION_AUTOROTATEPAGES_PAGEBYPAGE
public static final int OPTION_AUTOROTATEPAGES_PAGEBYPAGE- See Also:
-
OPTION_AUTOROTATEPAGES_OFF
public static final int OPTION_AUTOROTATEPAGES_OFF- See Also:
-
OPTION_PROCESSCOLORMODEL_RGB
public static final int OPTION_PROCESSCOLORMODEL_RGB- See Also:
-
OPTION_PROCESSCOLORMODEL_GRAY
public static final int OPTION_PROCESSCOLORMODEL_GRAY- See Also:
-
OPTION_PROCESSCOLORMODEL_CMYK
public static final int OPTION_PROCESSCOLORMODEL_CMYK- See Also:
-
OPTION_PDFSETTINGS_DEFAULT
public static final int OPTION_PDFSETTINGS_DEFAULT- See Also:
-
OPTION_PDFSETTINGS_SCREEN
public static final int OPTION_PDFSETTINGS_SCREEN- See Also:
-
OPTION_PDFSETTINGS_EBOOK
public static final int OPTION_PDFSETTINGS_EBOOK- See Also:
-
OPTION_PDFSETTINGS_PRINTER
public static final int OPTION_PDFSETTINGS_PRINTER- See Also:
-
OPTION_PDFSETTINGS_PREPRESS
public static final int OPTION_PDFSETTINGS_PREPRESS- See Also:
-
autoRotatePages
private int autoRotatePagesDefine auto rotate pages behaviour. Can be OPTION_AUTOROTATEPAGES_NONE, OPTION_AUTOROTATEPAGES_ALL, OPTION_AUTOROTATEPAGES_PAGEBYPAGE or OPTION_AUTOROTATEPAGES_OFF (default). -
processColorModel
private int processColorModelDefine process color model. Can be OPTION_PROCESSCOLORMODEL_RGB, OPTION_PROCESSCOLORMODEL_GRAY or OPTION_PROCESSCOLORMODEL_CMYK. -
PDFSettings
private int PDFSettingsDefine PDF settings to use. Can be OPTION_PDFSETTINGS_DEFAULT, OPTION_PDFSETTINGS_SCREEN, OPTION_PDFSETTINGS_EBOOK, OPTION_PDFSETTINGS_PRINTER or OPTION_PDFSETTINGS_PREPRESS. -
compatibilityLevel
Define PDF version compatibility level (default is "1.4"). -
PDFX
private boolean PDFXEnable PDFX generation (default is false). -
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
-
PDFConverter
public PDFConverter()
-
-
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 Run method called to perform the actual process of the converter.- Specified by:
run
in classAbstractRemoteConverter
- Parameters:
document
-outputStream
-- Throws:
IOException
ConverterException
DocumentException
-
getAutoRotatePages
public int getAutoRotatePages() -
setAutoRotatePages
public void setAutoRotatePages(int autoRotatePages) -
getProcessColorModel
public int getProcessColorModel() -
setProcessColorModel
public void setProcessColorModel(int processColorModel) -
getCompatibilityLevel
-
setCompatibilityLevel
-
getPDFSettings
public int getPDFSettings() -
setPDFSettings
public void setPDFSettings(int PDFSettings) -
isPDFX
public boolean isPDFX() -
setPDFX
public void setPDFX(boolean PDFX) -
getPaperSize
-
setPaperSize
-
setPaperSize
-