public enum Version extends Enum<Version>
V1_4.compareTo(V1_5) < 0
).Enum Constant and Description |
---|
V1_0
PDF v1
|
V1_1
PDF v1.1
|
V1_2
PDF v1.2
|
V1_3
PDF v1.3
|
V1_4
PDF v1.4
|
V1_5
PDF v1.5
|
V1_6
PDF v1.6
|
V1_7
PDF v1.7
|
V2_0
PDF v2.0
|
Modifier and Type | Method and Description |
---|---|
static Version |
getValueOf(String version)
Given the PDF version as a String, returns the corresponding enumerated type.
|
String |
toString() |
static Version |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Version[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Version V1_0
public static final Version V1_1
public static final Version V1_2
public static final Version V1_3
public static final Version V1_4
public static final Version V1_5
public static final Version V1_6
public static final Version V1_7
public static final Version V2_0
public static Version[] values()
for (Version c : Version.values()) System.out.println(c);
public static Version valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static Version getValueOf(String version)
version
- a version numberIllegalArgumentException
- if the argument does not correspond to any
existing PDF versionCopyright © 2025 Apache Software Foundation. All rights reserved.