PdfXValidationResult
Overview
PdfXValidationResult is a class in Aspose.PDF FOSS for Python.
Detailed result of a PDF/X validation run (heuristic).
This class declares 6 methods for PdfXValidationResult objects in Python programs.
Available methods include: __init__, __len__, __repr__, add_error, add_warning, to_dict.
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, standard, 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. |
standard | str | Read | Gets the standard. |
is_heuristic | bool | Read | Gets the is heuristic. |
Methods
| Signature | Description |
|---|---|
__init__(errors: list[str] | None, warnings: list[str] | None, standard: str, is_heuristic: bool) | Calls init(errors, warnings, standard, is_heuristic) on this PdfXValidationResult instance. |
add_error(error: str) | Append a conformance error. |
add_warning(warning: str) | Append an advisory finding. |
to_dict() → dict | Return a plain-dict representation of the result. |
__len__() → int | The number of errors, so len(result) reads as PDF/A’s does. |
__repr__() → str | Calls repr on this PdfXValidationResult instance. |