DocumentFormatConfiguration class

DocumentFormatConfiguration class

Represents a type reference for DocumentFormatInstance-derived class and a list of supported file extensions for faster format detection.

Learn more

The DocumentFormatConfiguration type exposes the following members:

Constructors

Constructor Description
init Initializes a new instance of DocumentFormatConfiguration.

Methods

Method Description
supports_extension Checks if a given file extension can be handled as DocumentType.
supports_extension_file
supports_extension_string

Properties

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.

Example

from groupdocs.redaction import DocumentFormatConfiguration

# Create a custom format configuration
config = DocumentFormatConfiguration()
config.ExtensionFilter = ".psd"
config.DocumentType = MyAdobePhotoshopFormatInstance

See Also