DocumentFormatConfiguration
Leave feedback
On this page
Represents a type reference for DocumentFormatInstance-derived class and supported file extensions list for faster format detection.
public class DocumentFormatConfiguration
| Name | Description |
|---|---|
| DocumentFormatConfiguration() | Initializes a new instance of DocumentFormatConfiguration class. |
| Name | Description |
|---|---|
| DocumentType { get; set; } | Gets or sets the type of a class, inheriting from DocumentFormatInstance. |
| ExtensionFilter { get; set; } | Gets or sets a comma (",") delimited list of file extensions (for example “.pdf”), case insensitive. |
| InitializationData { get; set; } | Gets or sets data, required for DocumentFormatInstance initialization. |
| Name | Description |
|---|---|
| SupportsExtension(string) | Checks if a given file extension can be handled as DocumentType. |
Learn more
- More details about GroupDocs.Redaction configuration: Extend supported extensions list
- More details about implementing custom formats: Create custom format handler
The following example demonstrates how to set properties for a custom format configuration.
var adobePhotoshopSettings = new DocumentFormatConfiguration();
adobePhotoshopSettings.ExtensionFilter = ".psd";
adobePhotoshopSettings.DocumentType = typeof(MyAdobePhotoshopFormatInstance);
- namespace GroupDocs.Redaction.Configuration
- assembly GroupDocs.Redaction
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.