Package com.pdftools.pdf
Class Conformance
- java.lang.Object
-
- com.pdftools.pdf.Conformance
-
public class Conformance extends java.lang.ObjectThe conformance of a PDF document
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConformance.PdfAVersionThe attributes of a PDF/A versionstatic classConformance.VersionThe PDF version number
-
Constructor Summary
Constructors Constructor Description Conformance(Conformance.PdfAVersion pdfa)Create a new PDF/A conformance.Conformance(Conformance.Version version)Create a new conformance for a specific PDF version.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanconformsTo(Conformance other)Check if this conformance conforms to another.booleanequals(java.lang.Object other)Conformance.PdfAVersiongetPdfA()The the PDF/A version attributes of this conformanceConformance.VersiongetVersion()The PDF version of this conformanceinthashCode()static Conformanceparse(java.lang.String conformance)java.lang.StringtoString()
-
-
-
Constructor Detail
-
Conformance
public Conformance(Conformance.Version version)
Create a new conformance for a specific PDF version.
-
Conformance
public Conformance(Conformance.PdfAVersion pdfa)
Create a new PDF/A conformance.
-
-
Method Detail
-
getVersion
public Conformance.Version getVersion()
The PDF version of this conformance
-
getPdfA
public Conformance.PdfAVersion getPdfA()
The the PDF/A version attributes of this conformance- Returns:
nullfor non PDF/A conformances. The PDF/A version otherwise.
-
conformsTo
public boolean conformsTo(Conformance other)
Check if this conformance conforms to another.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
parse
public static Conformance parse(java.lang.String conformance)
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-