DocumentFormatInstance class
DocumentFormatInstance class
Represents a specific format of a document. Implement this class to add your own document types.
The DocumentFormatInstance type exposes the following members:
Properties
| Property | Description |
|---|---|
| password | Gets or sets a password for password protected documents. |
Methods
| Method | Description |
|---|---|
initialize(self, config, settings) |
Performs initialization of the instance of document format handler. |
load(self, input) |
Loads the document from a stream. |
save(self, output) |
Saves the document to a stream. |
is_redaction_accepted(self, description) |
Checks for IRedactionCallback implementation and invokes it, if specified. |
perform_binary_check(self, input) |
Checks if the given stream contains a document, supported by this format instance. |
Remarks
Learn more | | |
Example
The following example demonstrates how to create an empty stub for a custom format handler.
The following example demonstrates how to use the initialization data.
See Also
- module
groupdocs.redaction.integration - class
IRedactionCallback