PdfAValidationResult
Overview
PdfAValidationResult is a class in Aspose.Pdf FOSS for Java.
Collects and reports PDF/A validation violations.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
compliant | boolean | Read | Returns {@code true} if the document is compliant (no ERROR-level violations). |
violations | List<PdfAViolation> | Read | Returns an unmodifiable list of all violations. |
targetFormat | PdfFormat | Read | Returns the target format this result was validated against. |
Methods
| Signature | Description |
|---|---|
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() → boolean | Returns {@code true} if the document is compliant (no ERROR-level violations). |
getViolations() → List<PdfAViolation> | Returns an unmodifiable list of all violations. |
getTargetFormat() → PdfFormat | Returns 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. |