PdfUaValidationResult
Overview
PdfUaValidationResult is a class in Aspose.PDF FOSS for Python.
Detailed result of a PDF/UA structure check (heuristic).
This class provides 4 methods for working with PdfUaValidationResult objects in Python programs.
Available methods include: __init__, add_error, add_warning, to_dict.
All public members are accessible to any Python application after installing the Aspose.PDF FOSS for Python package.
Properties: HEURISTIC_VALIDATION_NOTICE, errors, is_heuristic, is_valid, warnings.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
is_valid | bool | Read | Return True when there are no validation errors. |
HEURISTIC_VALIDATION_NOTICE | str | Read | Gets the heuristic validation notice. |
errors | list[str] | Read | Gets the errors. |
warnings | list[str] | Read | Gets the warnings. |
is_heuristic | bool | Read | Gets the is heuristic. |
Methods
| Signature | Description |
|---|---|
__init__(errors: list[str] | None, warnings: list[str] | None, is_heuristic: bool) | Calls init(errors, warnings, is_heuristic) on this PdfUaValidationResult instance. |
add_error(error: str) | Calls add_error(error) on this PdfUaValidationResult instance. |
add_warning(warning: str) | Calls add_warning(warning) on this PdfUaValidationResult instance. |
to_dict() → dict | Calls to_dict on this PdfUaValidationResult instance. |