from_extension method
from_extension
Maps the file extension to the file type.
Returns
When the file type is supported returns it, otherwise returns the default FileType.Unknown
file type.
def from_extension(self, extension):
...
Parameter | Type | Description |
---|---|---|
extension | str | The file extension (including the period “.”). |
Exceptions
Exception | Description |
---|---|
ArgumentException | Thrown when extension is null or empty string. |
See Also
- module
groupdocs.watermark.common
- class
FileType