PDFAnnotationEnum.java
3.55 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* com.adobe.internal.pdftoolkit.core.types.ASName
*/
package com.adobe.internal.pdftoolkit.pdf.interactive.annotation;
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 PDFAnnotationEnum {
Widget(true),
Circle(true),
Square(true),
PolyLine(true),
Polygon(true),
Caret(true),
FreeText(true),
Highlight(true),
Ink(true),
Line(true),
Squiggly(true),
StrikeOut(true),
Underline(true),
Stamp(false),
Link(false),
Sound(false),
Movie(false),
Screen(false),
TrapNet(false),
Watermark(false),
ThreeD(false),
Redact(false),
PrinterMark(false),
FileAttachment(false),
Popup(false),
Projection(false),
RichMedia(false),
StickyNote(false),
Text(false);
private boolean apGenSupported;
private PDFAnnotationEnum(boolean apGenSupported) {
this.apGenSupported = apGenSupported;
}
public boolean isAPGenerationSupported() {
return this.apGenSupported;
}
public static PDFAnnotationEnum getInstance(ASName subType) {
if (subType == ASName.k_Widget) {
return Widget;
}
if (subType == ASName.k_Circle) {
return Circle;
}
if (subType == ASName.k_Square) {
return Square;
}
if (subType == ASName.k_PolyLine) {
return PolyLine;
}
if (subType == ASName.k_Polygon) {
return Polygon;
}
if (subType == ASName.k_Caret) {
return Caret;
}
if (subType == ASName.k_FreeText) {
return FreeText;
}
if (subType == ASName.k_Highlight) {
return Highlight;
}
if (subType == ASName.k_Ink) {
return Ink;
}
if (subType == ASName.k_Line) {
return Line;
}
if (subType == ASName.k_Squiggly) {
return Squiggly;
}
if (subType == ASName.k_StrikeOut) {
return StrikeOut;
}
if (subType == ASName.k_Underline) {
return Underline;
}
if (subType == ASName.k_Stamp) {
return Stamp;
}
if (subType == ASName.k_Link) {
return Link;
}
if (subType == ASName.k_Sound) {
return Sound;
}
if (subType == ASName.k_Movie) {
return Movie;
}
if (subType == ASName.k_Screen) {
return Screen;
}
if (subType == ASName.k_TrapNet) {
return TrapNet;
}
if (subType == ASName.k_Watermark) {
return Watermark;
}
if (subType == ASName.k_3D) {
return ThreeD;
}
if (subType == ASName.k_Redact) {
return Redact;
}
if (subType == ASName.k_Watermark) {
return PrinterMark;
}
if (subType == ASName.k_FileAttachment) {
return FileAttachment;
}
if (subType == ASName.k_Popup) {
return Popup;
}
if (subType == ASName.k_Projection) {
return Projection;
}
if (subType == ASName.k_RichMedia) {
return RichMedia;
}
if (subType == ASName.k_StickyNote) {
return StickyNote;
}
if (subType == ASName.k_Text) {
return Text;
}
return null;
}
}