PNG
JPG
BMP
TIFF
VSX
提取 Python 中的 VSX 元数据
构建您自己的 Python 应用以添加、编辑、删除或提取 VSX 文件中的元数据
如何使用 Python 提取 VSX 元数据
为了提取 VSX 元数据,我们将使用
API 是一个功能丰富、功能强大且易于使用的转换API Python 平台。您可以直接从
在 Python 中提取 VSX 元数据的步骤
一个基本的文档查看和连接
只需几行代码即可完成 API。
- 使用 Diagram 类对象加载 Visio 文件 获取 Diagram 对象的 DocumentProps
- 显示属性值
系统要求
Python 的 Aspose.Diagram 是独立于平台的 API,可以在任何平台(Windows、Linux 和 MacOS)上使用,只需确保系统具有 Java 1.8 或更高版本, Python 3.5 或更高。
- 安装 Java 并将其添加到 PATH 环境变量,例如:
PATH=C:\Program Files\Java\jdk1.8.0_131;
.- 为 Python 安装 Aspose.Diagram pypi,使用命令为:$ pip install aspose-diagram
.
提取 VSX 元数据 - Python
diagram = Diagram( "f.vsx");
diagram.getDocumentProps().setCreator("Mr. Spunt")
diagram.getDocumentProps().setManager("Sir Pipo")
diagram.getDocumentProps().setTitle("sample title")
diagram.getDocumentProps().setKeywords("key1 key2 key3")
CusProps = diagram.getDocumentProps().getCustomProps()