PDFOptimizer Class Documentation
class PDFOptimizerNamespace:com::datalogics::PDFL
Detailed Description
Implementation of the PDF Optimizer function. Use the PDFOptimizer object to accumulate options for the Optimization, and to Optimize documents.
Constructor & Destructor Documentation
PDFOptimizer
PDFOptimizer()Construct a CPDFOptimizer, with default Options.
Member Function Documentation
delete
synchronized void delete(Boolean disposing)Parameters
disposing: Boolean
Returns:
synchronized voiddelete
synchronized void delete()Returns:
synchronized voidfinalize
void finalize()Returns:
voidgetCompressionQuality
CompressQuality getCompressionQuality(CompressImageType type)Parameters
type: CompressImageType
Returns:
CompressQualityGet the value of the Compression Quality for a given color model.
getMajorVersion
short getMajorVersion()Returns:
shortGet the value of the Major Version of the optimized document.
NOTE: A value of 0 indicates the Optimizer will decide what version it should be.
getMaxResolution
int getMaxResolution(CompressImageType type)Parameters
type: CompressImageType
Returns:
intGet the value of the Max DPI for a given color model.
getMinorVersion
short getMinorVersion()Returns:
shortGet the value of the Minor Version of the optimized document.
getObjectCompression
ObjectCompressionType getObjectCompression()Returns:
ObjectCompressionTypeGet the value of the Object Compression of the optimized document.
getOption
boolean getOption(OptimizerOption option)Parameters
option: OptimizerOption
Returns:
booleanGet the value of a single Optimizer Option.
getRecompressionType
CompressionType getRecompressionType(CompressImageType type)Parameters
type: CompressImageType
Returns:
CompressionTypeGet the value of the Recompression Type for a given color model.
getResampleToResolution
int getResampleToResolution(CompressImageType type)Parameters
type: CompressImageType
Returns:
intGet the value of the Resample To DPI for a given color model.
optimize
void optimize(Document doc, javax.imageio.stream.ImageOutputStream stream)Parameters
doc: Documentstream: javax.imageio.stream.ImageOutputStream
Returns:
voidoptimize
void optimize(Document doc, javax.imageio.stream.ImageOutputStream stream, ProgressMonitor progressMonitor, CancelProc cancelProc)Parameters
doc: Documentstream: javax.imageio.stream.ImageOutputStreamprogressMonitor: ProgressMonitorcancelProc: CancelProc
Returns:
voidoptimize
void optimize(Document document, JavaStreamFile dest)Parameters
document: Documentdest: JavaStreamFile
Returns:
voidoptimize
void optimize(Document document, JavaStreamFile dest, ProgressMonitor progressMonitor, CancelProc cancelProc)Parameters
document: Documentdest: JavaStreamFileprogressMonitor: ProgressMonitorcancelProc: CancelProc
Returns:
voidPerform the Optimization of a single document, saving the result in memory.
optimize
void optimize(Document document, String newPath)Parameters
document: DocumentnewPath: String
Returns:
voidoptimize
void optimize(Document document, String newPath, ProgressMonitor progressMonitor, CancelProc cancelProc)Parameters
document: DocumentnewPath: StringprogressMonitor: ProgressMonitorcancelProc: CancelProc
Returns:
voidPerform the Optimization of a single document, saving the result in a new file.
setCompressionQuality
void setCompressionQuality(CompressImageType type, CompressQuality value)Parameters
type: CompressImageTypevalue: CompressQuality
Returns:
voidSet the value for the Compression Quality for a given color model. Any image that recompressed, regardless of the reason, will use this Quality for the Quality value of the specific compression type.
setMajorVersion
void setMajorVersion(short major)Parameters
major: short
Returns:
voidSet the value for the Major Version for the optimized document.
setMaxResolution
void setMaxResolution(CompressImageType type, int value)Parameters
type: CompressImageTypevalue: int
Returns:
voidSet the value for the Max DPI for a given color model. Any image above this resolution will be down sampled, if the Downsampling option is true for this color model.
setMinorVersion
void setMinorVersion(short minor)Parameters
minor: short
Returns:
voidSet the value for the Minor Version for the optimized document.
setObjectCompression
void setObjectCompression(ObjectCompressionType objectCompression)Parameters
objectCompression: ObjectCompressionType
Returns:
voidSet the value for the Object Compression for the optimized document.
setOption
void setOption(OptimizerOption option, boolean value)Parameters
option: OptimizerOptionvalue: boolean
Returns:
voidSet the value of a single Optimizer option.
setRecompressionType
void setRecompressionType(CompressImageType type, CompressionType value)Parameters
type: CompressImageTypevalue: CompressionType
Returns:
voidSet the value for the recompression Type for a given color model. Any image that is downsampled will be compressed using this method, if the Downsampling option is true for this color model. Any image that is not downsampled, will be converted to this compression type, if it is not already compressed in this type, and the Recompression option for this color model is true.
setResampleToResolution
void setResampleToResolution(CompressImageType type, int value)Parameters
type: CompressImageTypevalue: int
Returns:
voidSet the value for the Resample To DPI for a given color model. Any image will be downsampled to this resolution, if the Downsampling option is true for this color model.