FileSpecification
FileSpecification
概述
FileSpecification 是 Aspose.PDF FOSS 中用于 Python 的类。
具有类型化元数据的文档级嵌入文件(/Filespec)。
此类提供 1 个方法,用于在 Python 程序中处理 FileSpecification 对象。可用的方法包括:save。在安装了 Aspose.PDF FOSS for Python 包后,所有公共成员对任何 Python 应用程序均可访问。属性:contents、creation_date、description、mime_type、mod_date、name,以及另外 1 项。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
size | int | 读取 | 以字节为单位的 :attr:contents 大小。 |
name | str | 读取 | 获取名称。 |
contents | bytes | 读取 | 获取内容。 |
mime_type | `str | None` | 读取 |
description | `str | None` | 读取 |
creation_date | `datetime | None` | 读取 |
mod_date | `datetime | None` | 读取 |
方法
| 签名 | 描述 |
|---|---|
| `save(path: str | Path)` |