PDFOptimizer Class Documentation

classPDFOptimizer : SystemIDisposable

Namespace:Datalogics::PDFL

Inherits from:
SystemIDisposable

Detailed Description

Implementation of the PDF Optimizer function.

Use the PDFOptimizer object to accumulate options for the Optimization, and to Optimize documents.

Referenced by

Constructor & Destructor Documentation

PDFOptimizer

PDFOptimizer(PDFOptimizerrhs, InternalConstructsignifier)

Parameters

signifier: InternalConstruct

PDFOptimizer

PDFOptimizer()

Construct a CPDFOptimizer, with default Options.

~PDFOptimizer

~PDFOptimizer()

Property Documentation

MajorVersion

shortMajorVersion[get, set]

MinorVersion

shortMinorVersion[get, set]

ObjectCompression

ObjectCompressionTypeObjectCompression[get, set]

Member Function Documentation

ConstructorRetrieve

static PDFOptimizerConstructorRetrieve(System.IntPtrignored)

Parameters

ignored: System.IntPtr

Returns:

PDFOptimizer

Dispose

voidDispose()

Returns:

void

DisposeChildren

voidDisposeChildren()

Returns:

void

GetResampleToResolution

intGetResampleToResolution(CompressImageTypetype)

Parameters

Returns:

int

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

Optimize

voidOptimize(Documentdocument, CDotNetStreamFiledest)

Parameters

document: Document
dest: CDotNetStreamFile

Returns:

void

Optimize

voidOptimize(Documentdoc, System.IO.Streamstream)

Parameters

stream: System.IO.Stream

Returns:

void

Optimize

voidOptimize(Documentdocument, stringnewPath)

Parameters

document: Document
newPath: string

Returns:

void

SetCompressionQuality

voidSetCompressionQuality(CompressImageTypetype, CompressQualityvalue)

Parameters

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.

SetMaxResolution

voidSetMaxResolution(CompressImageTypetype, intvalue)

Parameters

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.

SetOption

voidSetOption(OptimizerOptionoption, boolvalue)

Parameters

value: bool

Returns:

void

Set the value of a single Optimizer option.

SetRecompressionType

voidSetRecompressionType(CompressImageTypetype, CompressionTypevalue)

Parameters

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

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.