PdfValidator

public final class PdfValidator implements AutoCloseable

Validates PDF documents against archival (PDF/A) and accessibility (PDF/UA) conformance standards. The validator only accepts documents whose underlying type is PDF; other formats are rejected and are never converted implicitly. By default the document is validated against the conformance level it claims in its metadata. Set the property to force validation against a specific conformance level instead.

Functions

Link copied to clipboard
public final void close()
Closes this resource and releases any associated native resources.
Link copied to clipboard
public final PdfValidationConformance getConformance()
The conformance level the document is validated against.
Link copied to clipboard
public final static PdfValidator set(Document document)
Creates a PdfValidator instance for the specified document.
Link copied to clipboard
public final void setConformance(PdfValidationConformance value)
The conformance level the document is validated against.
Link copied to clipboard
Validates the document against the conformance level specified by the property.