PDFOptimizer Class Documentation
class PDFOptimizer : SystemIDisposableNamespace: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()Construct a CPDFOptimizer, with default Options.
Property Documentation
MajorVersion
short MajorVersion[get, set]MinorVersion
short MinorVersion[get, set]ObjectCompression
ObjectCompressionType ObjectCompression[get, set]Member Function Documentation
Dispose
void Dispose()Returns:
voidGetCompressionQuality
CompressQuality GetCompressionQuality(CompressImageType type)Parameters
type: CompressImageType
Returns:
CompressQualityGet the value of the Compression Quality for a given color model.
GetMaxResolution
int GetMaxResolution(CompressImageType type)Parameters
type: CompressImageType
Returns:
intGet the value of the Max DPI for a given color model.
GetOption
bool GetOption(OptimizerOption option)Parameters
option: OptimizerOption
Returns:
boolGet 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, System.IO.Stream stream)Parameters
doc: Documentstream: System.IO.Stream
Returns:
voidOptimize
void Optimize(Document doc, System.IO.Stream stream, ProgressMonitor progressMonitor, CancelProc cancelProc)Parameters
doc: Documentstream: System.IO.StreamprogressMonitor: ProgressMonitorcancelProc: CancelProc
Returns:
voidOptimize
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.
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.
SetOption
void SetOption(OptimizerOption option, bool value)Parameters
option: OptimizerOptionvalue: bool
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.