PdfXValidationResult

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

NameTypeAccessDescription
is_validboolReadReturn True when there are no validation errors.
HEURISTIC_VALIDATION_NOTICEstrReadGets the heuristic validation notice.
errorslist[str]ReadGets the errors.
warningslist[str]ReadGets the warnings.
standardstrReadGets the standard.
is_heuristicboolReadGets the is heuristic.

Methods

SignatureDescription
__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() → dictReturn a plain-dict representation of the result.
__len__() → intThe number of errors, so len(result) reads as PDF/A’s does.
__repr__() → strCalls repr on this PdfXValidationResult instance.

See Also