PdfUaValidationResult

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

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.
is_heuristicboolReadGets the is heuristic.

Methods

SignatureDescription
__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()dictCalls to_dict on this PdfUaValidationResult instance.

See Also