PDFOptimizer Class Documentation

classPDFOptimizer

Namespace: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

DisposeChildren

voidDisposeChildren()

Returns:

void

[static initializer]

static void[static initializer]()

delete

synchronized voiddelete(Booleandisposing)

Parameters

disposing: Boolean

Returns:

synchronized void

delete

synchronized voiddelete()

Returns:

synchronized void

finalize

voidfinalize()

Returns:

void

getCompressionQuality

CompressQualitygetCompressionQuality(CompressImageTypetype)

Parameters

type: CompressImageType

Returns:

CompressQuality

Get the value of the Compression Quality for a given color model.

getMajorVersion

shortgetMajorVersion()

Returns:

short

Get 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

intgetMaxResolution(CompressImageTypetype)

Parameters

type: CompressImageType

Returns:

int

Get the value of the Max DPI for a given color model.

getMinorVersion

shortgetMinorVersion()

Returns:

short

Get the value of the Minor Version of the optimized document.

getObjectCompression

ObjectCompressionTypegetObjectCompression()

Returns:

ObjectCompressionType

Get the value of the Object Compression of the optimized document.

getOption

booleangetOption(OptimizerOptionoption)

Parameters

option: OptimizerOption

Returns:

boolean

Get the value of a single Optimizer Option.

getRecompressionType

CompressionTypegetRecompressionType(CompressImageTypetype)

Parameters

type: CompressImageType

Returns:

CompressionType

Get the value of the Recompression Type for a given color model.

getResampleToResolution

intgetResampleToResolution(CompressImageTypetype)

Parameters

type: CompressImageType

Returns:

int

Get the value of the Resample To DPI for a given color model.

optimize

voidoptimize(Documentdoc, javax.imageio.stream.ImageOutputStreamstream)

Parameters

stream: javax.imageio.stream.ImageOutputStream

Returns:

void

optimize

voidoptimize(Documentdocument, StringnewPath)

Parameters

document: Document
newPath: String

Returns:

void

setCompressionQuality

voidsetCompressionQuality(CompressImageTypetype, CompressQualityvalue)

Parameters

type: CompressImageType
value: CompressQuality

Returns:

void

Set 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

voidsetMajorVersion(shortmajor)

Parameters

major: short

Returns:

void

Set the value for the Major Version for the optimized document.

setMaxResolution

voidsetMaxResolution(CompressImageTypetype, intvalue)

Parameters

type: CompressImageType
value: int

Returns:

void

Set 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

voidsetMinorVersion(shortminor)

Parameters

minor: short

Returns:

void

Set the value for the Minor Version for the optimized document.

setObjectCompression

voidsetObjectCompression(ObjectCompressionTypeobjectCompression)

Parameters

objectCompression: ObjectCompressionType

Returns:

void

Set the value for the Object Compression for the optimized document.

setOption

voidsetOption(OptimizerOptionoption, booleanvalue)

Parameters

option: OptimizerOption
value: boolean

Returns:

void

Set the value of a single Optimizer option.

setRecompressionType

voidsetRecompressionType(CompressImageTypetype, CompressionTypevalue)

Parameters

type: CompressImageType
value: CompressionType

Returns:

void

Set 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

voidsetResampleToResolution(CompressImageTypetype, intvalue)

Parameters

type: CompressImageType
value: int

Returns:

void

Set 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.