add_advanced_option method
Leave feedback
On this page
Registers an advanced rasterization option to apply.
def add_advanced_option(self, option_type):
...
| Parameter | Type | Description |
|---|---|---|
| option_type | AdvancedRasterizationOptions |
Provides information about the selected effect type (grayscale, border, etc.). |
from groupdocs.redaction import Redactor
from groupdocs.redaction.options import SaveOptions, AdvancedRasterizationOptions
with Redactor("./sample.docx") as redactor:
so = SaveOptions()
so.rasterization.enabled = True
so.redacted_file_suffix = "_scan"
so.rasterization.add_advanced_option(AdvancedRasterizationOptions.GRAYSCALE)
result_path = redactor.save(so)
Registers an advanced rasterization option to apply.
def add_advanced_option(self, option_type, parameters):
...
| Parameter | Type | Description |
|---|---|---|
| option_type | AdvancedRasterizationOptions |
Provides information about the selected effect type (grayscale, border, etc.). |
| parameters | dict[str, str] |
Parameters for the given effect, such as rotation angle. |
These names call add_advanced_option too, limited to the overloads listed.
| Alias | Accepts |
|---|---|
add_advanced_option_advanced_rasterization_options |
add_advanced_option_advanced_rasterization_options(option_type)add_advanced_option_advanced_rasterization_options(option_type, parameters) |
- class
RasterizationOptions
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.