ParseWarnings

ParseWarnings

概述

ParseWarnings 是 Aspose.PDF FOSS 为 Python 提供的一个类。

在解析过程中收集警告。

此类提供 3 种方法,用于在 Python 程序中处理 ParseWarnings 对象。可用的方法包括:__init__、add、clear。在安装 Aspose.PDF FOSS 为 Python 提供的包后,所有公共成员对任何 Python 应用程序均可访问。属性:warnings。

属性

名称类型访问描述
warningslist[PdfParseWarning]读取返回 warnings 列表的浅拷贝。

方法

签名描述
__init__()Calls init 在此 ParseWarnings 实例上。
add(message: str, offset: int)添加一个新的 warning。
clear()删除所有已收集的警告。

另请参阅

 中文