Package com.snowtide.pdf
Enum PDFVersion
- java.lang.Object
-
- java.lang.Enum<PDFVersion>
-
- com.snowtide.pdf.PDFVersion
-
- All Implemented Interfaces:
Serializable
,Comparable<PDFVersion>
public enum PDFVersion extends Enum<PDFVersion>
An enumeration corresponding to the PDF specification version levels that can be returned byDocument.getPDFVersion()
.- Version:
- ©2004-2024 Snowtide
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getVersionInd()
Returns the version indicator ('1.1', '1.2', etc).String
toString()
static PDFVersion
valueOf(String name)
Returns the enum constant of this type with the specified name.static PDFVersion[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
V1_0
public static final PDFVersion V1_0
-
V1_1
public static final PDFVersion V1_1
-
V1_2
public static final PDFVersion V1_2
-
V1_3
public static final PDFVersion V1_3
-
V1_4
public static final PDFVersion V1_4
-
V1_5
public static final PDFVersion V1_5
-
V1_6
public static final PDFVersion V1_6
-
V1_7
public static final PDFVersion V1_7
-
V_OTHER
public static final PDFVersion V_OTHER
-
-
Method Detail
-
values
public static PDFVersion[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PDFVersion c : PDFVersion.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PDFVersion valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getVersionInd
public String getVersionInd()
Returns the version indicator ('1.1', '1.2', etc).
-
toString
public String toString()
- Overrides:
toString
in classEnum<PDFVersion>
-
-