|
Foxit PDF SDK for HarmonyOS
3.0
|
Public Member Functions | |
| constructor (other) | |
| Constructor, with another result information object. More... | |
| IsEmpty () | |
| Check whether current object is empty or not. More... | |
| SetColorGrayImageCompressionMode (mode) | |
| Set compression mode used for optimizing color/gray images in the scanned PDF document. More... | |
| SetColorGrayImageCompressionQuality (quality) | |
| Set the quality for lossy compression modes, used for optimizing color/gray images in a scanned PDF document. More... | |
| SetMonoImageCompressionMode (mode) | |
| Set compression mode used for optimizing monochrome images in a scanned PDF document. More... | |
| SetOptimizedPages (pages) | |
| Set the pages which will be optimized. More... | |
Public Member Functions inherited from NativeObjectWrapper | |
| constructor (r) | |
| GetPointerAsNumber () | |
Static Public Attributes | |
| static | e_ScannedImageCompressHigh |
| Enumeration for compression mode used for color or gray image. More... | |
| static | e_ScannedImageCompressjpeg |
| Compression mode: jpeg. | |
| static | e_ScannedImageCompressjpeg2000LossLess |
| Compression mode: jpeg2000 lossless. | |
| static | e_ScannedImageCompressjpeg2000Lossy |
| Compression mode: jpeg2000 lossy. | |
| static | e_ScannedMonoImageCompressCCITT4 |
| Compression mode: CCITT Group 4. | |
| static | e_ScannedMonoImageCompressHigh |
| Compression mode: high. | |
| static | e_ScannedMonoImageCompressjbig2LossLess |
| Compression mode: jbig2 lossless. | |
| static | e_ScannedMonoImageCompressjbig2Lossy |
| Enumeration for compression mode used for monochrome image. More... | |
This class represents settings for optimizing a scanned PDF document. It would be used in class Optimizer.
| OptimizeScannedPDFSettings.constructor | ( | other | ) |
Constructor, with another result information object.
| [in] | other | Another optimizer settings object. |
| OptimizeScannedPDFSettings.IsEmpty | ( | ) |
Check whether current object is empty or not.
When the current object is empty, that means current object is useless.
| OptimizeScannedPDFSettings.SetColorGrayImageCompressionMode | ( | mode | ) |
Set compression mode used for optimizing color/gray images in the scanned PDF document.
For a newly constructed object, if this function is not called to set option, that means to use OptimizeScannedPDFSettings.e_ImageCompressjpeg as the default value of this option.
| [in] | mode | Image compression mode. Please refer to values starting from OptimizeScannedPDFSettings.e_ScannedImageCompressHigh and this should be one of these values. |
| OptimizeScannedPDFSettings.SetColorGrayImageCompressionQuality | ( | quality | ) |
Set the quality for lossy compression modes, used for optimizing color/gray images in a scanned PDF document.
For a newly constructed object, if this function is not called to set this option, that means to use 33 as the default value of this option.
| [in] | quality | Quality value for lossy compression modes, the value must between 0 and 100. |
| OptimizeScannedPDFSettings.SetMonoImageCompressionMode | ( | mode | ) |
Set compression mode used for optimizing monochrome images in a scanned PDF document.
For a newly constructed object, if this function is not called to set option, that means to use OptimizeScannedPDFSettings.e_ScannedMonoImageCompressjbig2Lossy as the default value of this option.
| [in] | mode | Image compression mode. Please refer to values starting from OptimizeScannedPDFSettings.e_ScannedMonoImageCompressjbig2Lossy and this should be one of these values. |
| OptimizeScannedPDFSettings.SetOptimizedPages | ( | pages | ) |
Set the pages which will be optimized.
For a newly constructed object,if this function is not called. all pages will be optimized.
| [in] | pages | The Specify pages, If pages doesn't not add pages index means all pages will be optimized. |
|
static |
Enumeration for compression mode used for color or gray image.
Values of this enumeration should be used alone.
Compression mode: high.
|
static |
Enumeration for compression mode used for monochrome image.
Values of this enumeration should be used alone.
Compression mode: jbig2 lossy.