PdfValidationRésultat
Vue de l’ensemble
‘PdfAValidationResult’ est une classe dans Aspose.PDF FOSS pour Java.
Collecte et rapports de violations de validation PDF/A.
Cette classe fournit 9 méthodes pour travailler avec les objets de PdfAValidationResult dans des programmes Java. Les méthodologies disponibles comprennent: PdfValitationRésultat, addError , adViolation ‘addWarning,, getTargetFormat gettViols ‘isCompliant ’writeXmlLog. Tous les membres publics sont accessibles à toute application Java après l'installation de l’Aspose.PDF FOSS pour le package Java . Propriétés : complient;targetformat‘, ‘violations’.
Propriétés
| 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. |
méthodes
| 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. |
Voir aussi
- Aspose.PDF pour Java — API d’entreprise