Package com.pdftools.pdf
Class Conformance
- java.lang.Object
-
- com.pdftools.pdf.Conformance
-
public class Conformance extends java.lang.Object
The conformance of a PDF document
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Conformance.PdfAVersion
The attributes of a PDF/A versionstatic class
Conformance.Version
The 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 boolean
conformsTo(Conformance other)
Check if this conformance conforms to another.boolean
equals(java.lang.Object other)
Conformance.PdfAVersion
getPdfA()
The the PDF/A version attributes of this conformanceConformance.Version
getVersion()
The PDF version of this conformanceint
hashCode()
static Conformance
parse(java.lang.String conformance)
java.lang.String
toString()
-
-
-
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:
null
for 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:
toString
in classjava.lang.Object
-
parse
public static Conformance parse(java.lang.String conformance)
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-