FileSpecification
Overview
FileSpecification is a class in Aspose.PDF FOSS for Python.
A document-level embedded file (/Filespec) with typed metadata.
This class provides 1 method for working with FileSpecification objects in Python programs.
Available methods include: save.
All public members are accessible to any Python application after installing the Aspose.PDF FOSS for Python package.
Properties: contents, creation_date, description, mime_type, mod_date, name, and 1 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
size | int | Read | The size of :attr:contents in bytes. |
name | str | Read | Gets the name. |
contents | bytes | Read | Gets the contents. |
mime_type | str | None | Read | Gets the mime type. |
description | str | None | Read | Gets the description. |
creation_date | datetime | None | Read | Gets the creation date. |
mod_date | datetime | None | Read | Gets the mod date. |
Methods
| Signature | Description |
|---|---|
save(path: str | Path) | Write the decoded attachment bytes to path. |