Package com.itextpdf.kernel.pdf
Class PdfVersion
java.lang.Object
com.itextpdf.kernel.pdf.PdfVersion
- All Implemented Interfaces:
-
Comparable<PdfVersion>
This class represents all official PDF versions.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PdfVersionstatic final PdfVersionstatic final PdfVersionstatic final PdfVersionstatic final PdfVersionstatic final PdfVersionstatic final PdfVersionstatic final PdfVersionstatic final PdfVersion -
Method Summary
Modifier and TypeMethodDescriptionintbooleanstatic PdfVersionfromPdfName(PdfName name) Creates a PdfVersion class from aPdfNameobject if the specified version can be found.static PdfVersionfromString(String value) Creates a PdfVersion class from a String object if the specified version can be found.toString()
-
Field Details
-
PDF_1_0
-
PDF_1_1
-
PDF_1_2
-
PDF_1_3
-
PDF_1_4
-
PDF_1_5
-
PDF_1_6
-
PDF_1_7
-
PDF_2_0
-
-
Method Details
-
toString
-
toPdfName
-
fromString
Creates a PdfVersion class from a String object if the specified version can be found.- Parameters:
-
value- version number - Returns:
- PdfVersion of the specified version
-
fromPdfName
Creates a PdfVersion class from aPdfNameobject if the specified version can be found.- Parameters:
-
name- version number - Returns:
- PdfVersion of the specified version
-
compareTo
- Specified by:
-
compareToin interfaceComparable<PdfVersion>
-
equals
-