Foxit PDF SDK
|
Instance Methods | |
(id) | - init |
Constructor. More... | |
(id) | - initWithOther: |
Constructor, with another optimizer settings object. More... | |
(BOOL) | - isEmpty |
Check whether current object is empty or not. More... | |
(void) | - setCleanUpOptions: |
Set optimization related options for cleaning up. More... | |
(void) | - setColorGrayImageSettings: |
Set optimization related settings for color/gray image. More... | |
(void) | - setDiscardObjectsOptions: |
Set optimization related options for discarding objects. More... | |
(void) | - setDiscardUserDataOptions: |
Set optimization related options for discarding user data. More... | |
(void) | - setMonoImageSettings: |
Set optimization related settings for monochrome image. More... | |
(void) | - setOptimizerOptions: |
Set options to decide which kind of optimizer setting will be used for optimizing PDF document. More... | |
(void) | - setUnembeddedFontSettings: |
Set optimization related settings for unembedding fonts. More... | |
This class represents settings for optimizing a PDF document. It would be used in class FSOptimizer .
- (id) init |
Constructor.
This constructor is to construct a optimizer settings object with default setting options. User can also call "set" methods in this class to change setting options. Please refer to comment in other settings class (which can be set to current object) for more details about what default setting options are.
- (id) initWithOther: | (FSOptimizerSettings*) | other |
Constructor, with another optimizer settings object.
[in] | other | Another optimizer settings object. |
- (BOOL) isEmpty |
Check whether current object is empty or not.
When the current object is empty, that means current object is useless.
- (void) setCleanUpOptions: | (unsigned int) | clean_up_options |
Set optimization related options for cleaning up.
For a newly constructed object, if this function is not called to set any clean-up options, that means not to do clean- up optimization. Clean-up options set by this function are useful only when option value FSOptimizerSettingsOptimizerCleanUp is set by function FSOptimizerSettings::setOptimizerOptions:.
[in] | clean_up_options | Optimization related options for cleaning up. 0 means not to do clean-up optimization. Please refer to values starting from FSOptimizerSettingsCleanUpUseFlateForNonEncodedStream and this can be one or a combination of these values. |
- (void) setColorGrayImageSettings: | (FSImageSettings*) | settings |
Set optimization related settings for color/gray image.
For a newly constructed object, if this function is not called to set any color/gray image settings, that means to use default color/gray image settings. Please refer to comment in class FSImageSettings for default values.
ImageSettings set by this function is useful only when option value FSOptimizerSettingsOptimizerCompressImages is set by function FSOptimizerSettings::setOptimizerOptions:.
[in] | settings | Optimization related settings for color and grayscale images. |
- (void) setDiscardObjectsOptions: | (unsigned int) | discard_objects_options |
Set optimization related options for discarding objects.
For a newly constructed object, if this function is not called to set any discard-objects options, that means not to do discard-objects optimization. Discard-objects options set by this function are useful only when option value FSOptimizerSettingsOptimizerDiscardObjects is set by function FSOptimizerSettings::setOptimizerOptions:.
[in] | discard_objects_options | Optimization related options for discarding objects. 0 means not to do discarding-objects optimization. Please refer to values starting from FSOptimizerSettingsDiscardObjectsFormActions and this can be one or a combination of these values. |
- (void) setDiscardUserDataOptions: | (unsigned int) | discard_userdata_options |
Set optimization related options for discarding user data.
For a newly constructed object, if this function is not called to set any discard-userdata options, that means not to do discard-userdata optimization. Discard-userdata options set by this function are useful only when option value FSOptimizerSettingsOptimizerDiscardUserData is set by function FSOptimizerSettings::setOptimizerOptions:.
[in] | discard_userdata_options | Optimization related options for discarding user data. 0 means not to do discarding-userdata optimization. Please refer to values starting from FSOptimizerSettingsDiscardUserDataAllAnnotsFormsAndMultimedia and this can be one or a combination of these values. |
- (void) setMonoImageSettings: | (FSMonoImageSettings*) | settings |
Set optimization related settings for monochrome image.
For a newly constructed object, if this function is not called to set any monochrome image settings, that means to use default monochrome image settings. Please refer to comment in class FSMonoImageSettings for detail values.
MonoImageSettings set by this function is useful only when option value FSOptimizerSettingsOptimizerCompressImages is set by function FSOptimizerSettings::setOptimizerOptions:.
[in] | settings | Optimization related settings for monochrome images. |
- (void) setOptimizerOptions: | (unsigned int) | optimize_options |
Set options to decide which kind of optimizer setting will be used for optimizing PDF document.
For a newly constructed object, if this function is not called to set any optimizer options, that means no optimizer setting is useful.
[in] | optimize_options | The options to decide which kind of optimizer setting will be used for optimizing PDF document. 0 means no optimizer setting of any kind is useful. Please refer to values starting from FSOptimizerSettingsOptimizerCompressImages and this can be one or a combination of these values. |
- (void) setUnembeddedFontSettings: | (FSUnembeddedFontSettings*) | settings |
Set optimization related settings for unembedding fonts.
For a newly constructed object, if this function is not called to set any unembedded fonts settings, that means to no font is to be unembedded. UnembeddedFontSettings set by this function is useful only when option value FSOptimizerSettingsOptimizerUnembeddedFonts is set by function FSOptimizerSettings::setOptimizerOptions:.
[in] | settings | Optimization related settings for unembedding fonts. |