PdfAValidationResult

PdfAValidationResult

Overview

PdfAValidationResult is a class in Aspose.Pdf FOSS for Java.

Collects and reports PDF/A validation violations.

Properties

NameTypeAccessDescription
compliantbooleanReadReturns {@code true} if the document is compliant (no ERROR-level violations).
violationsList<PdfAViolation>ReadReturns an unmodifiable list of all violations.
targetFormatPdfFormatReadReturns the target format this result was validated against.

Methods

SignatureDescription
PdfAValidationResult(targetFormat: PdfFormat)Creates a new validation result for the given target format.
addViolation(violation: PdfAViolation)Adds a pre-constructed violation to this result.
addError(ruleId: String, message: String, objectPath: String, clause: String)Convenience method to add an ERROR-level violation.
addWarning(ruleId: String, message: String, objectPath: String, clause: String)Convenience method to add a WARNING-level violation.
isCompliant()booleanReturns {@code true} if the document is compliant (no ERROR-level violations).
getViolations()List<PdfAViolation>Returns an unmodifiable list of all violations.
getTargetFormat()PdfFormatReturns the target format this result was validated against.
writeXmlLog(filePath: String)Writes the validation result as an XML log to the specified file path.
writeXmlLog(os: OutputStream)Writes the validation result as an XML log to the specified output stream.

See Also