DocumentProperties
DocumentProperties
概述
DocumentProperties 是 Aspose.Slides FOSS 中用于 Python 的类。继承自:IDocumentProperties。
表示演示文稿的属性。
此类提供 7 个方法,用于在 Python 程序中处理 DocumentProperties 对象。可用的方法包括:clear_built_in_properties, clear_custom_properties, contains_custom_property, get_custom_property_name, get_custom_property_value, remove_custom_property, set_custom_property_value。在安装了 Aspose.Slides FOSS for Python 包后,所有公共成员对任何 Python 应用程序均可访问。属性:app_version, application_template, author, category, comments, company,以及另外 28 项。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
title | str | 读写 | 返回或设置演示文稿的标题。 |
subject | str | 读写 | 返回或设置演示文稿的主题。 |
author | str | 读写 | 返回或设置演示文稿的作者。 |
keywords | str | 读写 | 返回或设置演示文稿的关键词。 |
comments | str | 读写 | 返回或设置演示文稿的评论。 |
category | str | 读写 | 返回或设置演示文稿的类别。 |
content_status | str | 读写 | 返回或设置演示文稿的内容状态。 |
content_type | str | 读写 | 返回或设置演示文稿的内容类型。 |
last_saved_by | str | 读写 | 返回或设置最后一次修改演示文稿的人的姓名。 |
revision_number | int | 读写 | 返回或设置演示文稿的修订号。 |
created_time | Any | 读写 | 返回演示文稿创建的日期。 |
last_saved_time | Any | 读写 | 返回演示文稿最后一次修改的日期。 |
last_printed | Any | 读写 | 返回演示文稿上一次打印的日期。 |
app_version | str | 读取 | 返回应用程序的版本。 |
name_of_application | str | 读写 | 返回或设置应用程序的名称。 |
company | str | 读写 | 返回或设置公司属性。 |
manager | str | 读写 | 返回或设置 manager 属性。 |
presentation_format | str | 读写 | 返回或设置演示文稿的预期格式。 |
application_template | str | 读写 | 返回或设置应用程序的模板。 |
hyperlink_base | str | 读写 | 返回或设置 HyperlinkBase 文档属性。 |
total_editing_time | timedelta | 读写 | 演示文稿的总编辑时间。 |
shared_doc | bool | 读写 | 确定演示文稿是否在多个人之间共享。 |
scale_crop | bool | 读写 | 指示文档缩略图的显示模式。 |
links_up_to_date | bool | 读写 | 指示文档中的超链接是否是最新的。 |
hyperlinks_changed | bool | 读写 | 指定此部分中的一个或多个超链接仅由生产者在此部分更新。 |
slides | int | 读取 | 返回演示文稿中幻灯片的总数。 |
hidden_slides | int | 读取 | 返回演示文稿中隐藏幻灯片的数量。 |
notes | int | 读取 | 返回演示文稿中包含备注的幻灯片数量。 |
paragraphs | int | 读取 | 返回文档中找到的段落总数(如适用)。 |
words | int | 读取 | 返回文档中包含的单词总数。 |
multimedia_clips | int | 读取 | 返回文档中存在的声音或视频剪辑的总数。 |
heading_pairs | list[IHeadingPair] | 读取 | 指示文档部分的分组以及每个组中的部分数量。 |
titles_of_parts | list[str] | 读取 | 指定每个文档部分的标题。 |
count_of_custom_properties | int | 读取 | 返回集合实际包含的自定义属性数量。 |
方法
| 签名 | 描述 |
|---|---|
get_custom_property_value() | 按名称获取自定义属性值。 |
set_custom_property_value() | 通过名称设置自定义属性值。 |
get_custom_property_name(index) → str | 返回指定索引处的自定义属性名称 |
remove_custom_property(name) → bool | 删除具有给定名称的自定义属性并返回成功 |
contains_custom_property(name) → bool | 检查是否存在具有给定名称的自定义属性 |
clear_custom_properties() | 从文档中移除所有自定义属性 |
clear_built_in_properties() | 清除所有内置文档属性 |