DocumentFormatConfiguration class
Leave feedback
On this page
Represents a type reference for DocumentFormatInstance-derived class and a list of supported file extensions for faster format detection.
Learn more
- More details about GroupDocs.Redaction configuration: https://docs.groupdocs.com/redaction/net/extend-supported-extensions-list/
- More details about implementing custom formats: https://docs.groupdocs.com/redaction/net/create-custom-format-handler/
The DocumentFormatConfiguration type exposes the following members:
| Constructor | Description |
|---|---|
| init | Initializes a new instance of DocumentFormatConfiguration. |
| Method | Description |
|---|---|
| supports_extension | Checks if a given file extension can be handled as DocumentType. |
| supports_extension_file | |
| supports_extension_string |
| Property | Description |
|---|---|
| document_type | The type of a class inheriting from DocumentFormatInstance. |
| extension_filter | The comma‑delimited list of file extensions (for example “.pdf”), case‑insensitive. |
| initialization_data | The data required for DocumentFormatInstance initialization. |
from groupdocs.redaction import DocumentFormatConfiguration
# Create a custom format configuration
config = DocumentFormatConfiguration()
config.ExtensionFilter = ".psd"
config.DocumentType = MyAdobePhotoshopFormatInstance
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.