PdfValidationRésultat

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

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.

méthodes

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.

Voir aussi

  • Aspose.PDF pour Java — API d’entreprise
 Français