FileSpecification

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

NameTypeAccessDescription
sizeintReadThe size of :attr:contents in bytes.
namestrReadGets the name.
contentsbytesReadGets the contents.
mime_typestr | NoneReadGets the mime type.
descriptionstr | NoneReadGets the description.
creation_datedatetime | NoneReadGets the creation date.
mod_datedatetime | NoneReadGets the mod date.

Methods

SignatureDescription
save(path: str | Path)Write the decoded attachment bytes to path.

See Also