PdfAValidationResult
Overview
PdfAValidationResult is a class in Aspose.PDF FOSS for Python.
Result of a PDF/A validation run.
This class provides 4 methods for working with PdfAValidationResult objects in Python programs.
Available methods include: __init__, add_error, reset, to_dict.
All public members are accessible to any Python application after installing the Aspose.PDF FOSS for Python package.
Properties: errors, is_valid.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
is_valid | bool | Read | Gets the is valid. |
errors | list[str] | Read | Gets the errors. |
Methods
| Signature | Description |
|---|---|
__init__() | Calls init on this PdfAValidationResult instance. |
reset() | Reset the validation result to its default state. |
add_error(error: str) | Add an error message to the result and mark it as invalid. |
to_dict() → dict[str, Any] | Return a dictionary representation of the validation result. |