PdfUaValidationResult
PdfUaValidationResult
概述
PdfUaValidationResult 是 Aspose.PDF FOSS 中用于 Python 的类。
对 PDF/UA 结构检查(启发式)的详细结果。
此类提供 4 个方法,用于在 Python 程序中处理 PdfUaValidationResult 对象。可用的方法包括:__init__、add_error、add_warning、to_dict。在安装了用于 Python 的 Aspose.PDF FOSS 包后,所有公共成员对任何 Python 应用程序均可访问。属性:HEURISTIC_VALIDATION_NOTICE、errors、is_heuristic、is_valid、warnings。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
is_valid | bool | 读取 | 当没有验证错误时返回 True. |
HEURISTIC_VALIDATION_NOTICE | str | 读取 | 获取启发式验证通知。 |
errors | list[str] | 读取 | 获取错误。 |
warnings | list[str] | 读取 | 获取警告。 |
is_heuristic | bool | 读取 | 获取 is heuristic。 |
方法
| 签名 | 描述 |
|---|---|
| `init(errors: list[str] | None, warnings: list[str] |
add_error(error: str) | 在此 PdfUaValidationResult 实例上调用 add_error(error)。 |
add_warning(warning: str) | 在此 PdfUaValidationResult 实例上调用 add_warning(warning)。 |
to_dict() → dict | 在此 PdfUaValidationResult 实例上调用 to_dict。 |