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
Modifier and TypeFieldDescriptionstatic final PdfVersion
static final PdfVersion
static final PdfVersion
static final PdfVersion
static final PdfVersion
static final PdfVersion
static final PdfVersion
static final PdfVersion
static final PdfVersion
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
static PdfVersion
fromPdfName
(PdfName name) Creates a PdfVersion class from aPdfName
object if the specified version can be found.static PdfVersion
fromString
(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 aPdfName
object if the specified version can be found.- Parameters:
-
name
- version number - Returns:
- PdfVersion of the specified version
-
compareTo
- Specified by:
-
compareTo
in interfaceComparable<PdfVersion>
-
equals
-