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 项。

属性

名称类型访问描述
titlestr读写返回或设置演示文稿的标题。
subjectstr读写返回或设置演示文稿的主题。
authorstr读写返回或设置演示文稿的作者。
keywordsstr读写返回或设置演示文稿的关键词。
commentsstr读写返回或设置演示文稿的评论。
categorystr读写返回或设置演示文稿的类别。
content_statusstr读写返回或设置演示文稿的内容状态。
content_typestr读写返回或设置演示文稿的内容类型。
last_saved_bystr读写返回或设置最后一次修改演示文稿的人的姓名。
revision_numberint读写返回或设置演示文稿的修订号。
created_timeAny读写返回演示文稿创建的日期。
last_saved_timeAny读写返回演示文稿最后一次修改的日期。
last_printedAny读写返回演示文稿上一次打印的日期。
app_versionstr读取返回应用程序的版本。
name_of_applicationstr读写返回或设置应用程序的名称。
companystr读写返回或设置公司属性。
managerstr读写返回或设置 manager 属性。
presentation_formatstr读写返回或设置演示文稿的预期格式。
application_templatestr读写返回或设置应用程序的模板。
hyperlink_basestr读写返回或设置 HyperlinkBase 文档属性。
total_editing_timetimedelta读写演示文稿的总编辑时间。
shared_docbool读写确定演示文稿是否在多个人之间共享。
scale_cropbool读写指示文档缩略图的显示模式。
links_up_to_datebool读写指示文档中的超链接是否是最新的。
hyperlinks_changedbool读写指定此部分中的一个或多个超链接仅由生产者在此部分更新。
slidesint读取返回演示文稿中幻灯片的总数。
hidden_slidesint读取返回演示文稿中隐藏幻灯片的数量。
notesint读取返回演示文稿中包含备注的幻灯片数量。
paragraphsint读取返回文档中找到的段落总数(如适用)。
wordsint读取返回文档中包含的单词总数。
multimedia_clipsint读取返回文档中存在的声音或视频剪辑的总数。
heading_pairslist[IHeadingPair]读取指示文档部分的分组以及每个组中的部分数量。
titles_of_partslist[str]读取指定每个文档部分的标题。
count_of_custom_propertiesint读取返回集合实际包含的自定义属性数量。

方法

签名描述
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()清除所有内置文档属性

另请参阅

 中文