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 intDefine auto rotate pages behaviour.private StringDefine PDF version compatibility level (default is "1.4").static final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intprivate PaperSizeDefine standard paper size for the generated PDF file.private intDefine PDF settings to use.private booleanEnable PDFX generation (default is false).private intDefine process color model.Fields inherited from class org.ghost4j.AbstractRemoteComponent
maxProcessCount, processCountFields inherited from class org.ghost4j.AbstractComponent
supportedDocumentClasses -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintintbooleanisPDFX()static voidMain method used to start the converter in standalone 'slave mode'.voidrun(Document document, OutputStream outputStream) Run method called to perform the actual process of the converter.voidsetAutoRotatePages(int autoRotatePages) voidsetCompatibilityLevel(String compatibilityLevel) voidsetPaperSize(String paperSizeName) voidsetPaperSize(PaperSize paperSize) voidsetPDFSettings(int PDFSettings) voidsetPDFX(boolean PDFX) voidsetProcessColorModel(int processColorModel) Methods inherited from class org.ghost4j.converter.AbstractRemoteConverter
convert, remoteConvert, startRemoteConverterMethods inherited from class org.ghost4j.AbstractRemoteComponent
buildJavaFork, getMaxProcessCount, getProcessCount, getRemoteComponent, isStandAloneModeSupported, setMaxProcessCount, startRemoteServer, waitForFreeProcessMethods inherited from class org.ghost4j.AbstractComponent
assertDeviceSupported, assertDocumentSupported, copySettings, extractSettings, isDeviceSupportedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ghost4j.Component
copySettings, extractSettingsMethods 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:
runin classAbstractRemoteConverter- Parameters:
document-outputStream-- Throws:
IOExceptionConverterExceptionDocumentException
-
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
-