PDFPageLabelStyle.java
1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* com.adobe.internal.pdftoolkit.core.types.ASName
*/
package com.adobe.internal.pdftoolkit.pdf.page;
import com.adobe.internal.pdftoolkit.core.types.ASName;
/*
* This class specifies class file version 49.0 but uses Java 6 signatures. Assumed Java 6.
*/
public enum PDFPageLabelStyle {
Decimal(ASName.create((String)"D")),
UppercaseRoman(ASName.create((String)"R")),
LowercaseRoman(ASName.create((String)"r")),
UppercaseLetter(ASName.create((String)"A")),
LowercaseLetter(ASName.create((String)"a"));
private final ASName value;
private PDFPageLabelStyle(ASName style) {
this.value = style;
}
static PDFPageLabelStyle getInstance(ASName style) {
if (style == Decimal.getValue()) {
return Decimal;
}
if (style == UppercaseRoman.getValue()) {
return UppercaseRoman;
}
if (style == LowercaseRoman.getValue()) {
return LowercaseRoman;
}
if (style == UppercaseLetter.getValue()) {
return UppercaseLetter;
}
if (style == LowercaseLetter.getValue()) {
return LowercaseLetter;
}
return null;
}
ASName getValue() {
return this.value;
}
public String toString() {
return this.value.asString(true);
}
}