PDFFormRenderSpec.java
6.85 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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* com.adobe.livecycle.SinceLC
*/
package com.adobe.livecycle.formsservice.client;
import com.adobe.livecycle.SinceLC;
import com.adobe.livecycle.formsservice.client.AcrobatVersion;
import com.adobe.livecycle.formsservice.client.FormModel;
import com.adobe.livecycle.formsservice.client.PDFVersion;
import com.adobe.livecycle.formsservice.client.RenderAtClient;
import com.adobe.livecycle.formsservice.utils.FormsServiceClientUtils;
import java.io.Serializable;
import java.util.HashMap;
public class PDFFormRenderSpec
implements Serializable {
private static final long serialVersionUID = 2155387699890123154L;
private Boolean cacheEnabled = null;
private PDFVersion pDFVersion = null;
private boolean taggedPDF = true;
private boolean linearizedPDF = false;
private String seedPDF = null;
private AcrobatVersion acrobatVersion = null;
private String xCIURI = null;
private String charset = null;
private RenderAtClient renderAtClient = null;
private String locale = null;
private boolean standAlone = false;
private FormModel formModel = FormModel.auto;
private boolean xMLData = false;
private boolean debugEnabled = false;
private boolean clientCache = false;
private Boolean generateServerAppearance = false;
@SinceLC(value="10.0.0.0")
private boolean enableViewerPreferences = false;
@SinceLC(value="10.0.0.0")
private boolean logPerformance = false;
private HashMap internalOptionMap;
private int auditLog = 0;
public PDFFormRenderSpec() {
}
public PDFFormRenderSpec(Boolean cacheEnabled, PDFVersion pDFVersion, boolean taggedPDF, boolean linearizedPDF, String seedPDF, AcrobatVersion acrobatVersion, String xCIURI, String charset, RenderAtClient renderAtClient, String locale, boolean standAlone, FormModel formModel, boolean xMLData) {
this.cacheEnabled = cacheEnabled;
this.pDFVersion = pDFVersion;
this.taggedPDF = taggedPDF;
this.linearizedPDF = linearizedPDF;
this.seedPDF = seedPDF;
this.acrobatVersion = acrobatVersion;
this.xCIURI = xCIURI;
this.charset = charset;
this.renderAtClient = renderAtClient;
this.locale = locale;
this.standAlone = standAlone;
this.formModel = formModel;
this.xMLData = xMLData;
}
@SinceLC(value="10.0.0.0")
public boolean isLogPerformance() {
return this.logPerformance;
}
@SinceLC(value="10.0.0.0")
public void setLogPerformance(boolean logPerformance) {
this.logPerformance = logPerformance;
}
public Boolean isCacheEnabled() {
return this.cacheEnabled;
}
public Boolean getCacheEnabled() {
return this.cacheEnabled;
}
@SinceLC(value="10.0.0.0")
public boolean isEnableViewerPreferences() {
return this.enableViewerPreferences;
}
@SinceLC(value="10.0.0.0")
public void setEnableViewerPreferences(boolean enableViewerPreferences) {
this.enableViewerPreferences = enableViewerPreferences;
}
public void setCacheEnabled(Boolean cacheEnabled) {
this.cacheEnabled = cacheEnabled;
}
public PDFVersion getPDFVersion() {
return this.pDFVersion;
}
public void setPDFVersion(PDFVersion pDFVersion) {
this.pDFVersion = pDFVersion;
}
public boolean isTaggedPDF() {
return this.taggedPDF;
}
public void setTaggedPDF(boolean taggedPDF) {
this.taggedPDF = taggedPDF;
}
public boolean isLinearizedPDF() {
return this.linearizedPDF;
}
public void setLinearizedPDF(boolean linearizedPDF) {
this.linearizedPDF = linearizedPDF;
}
public String getSeedPDF() {
return this.seedPDF;
}
public void setSeedPDF(String seedPDF) {
this.seedPDF = seedPDF;
}
public AcrobatVersion getAcrobatVersion() {
return this.acrobatVersion;
}
public void setAcrobatVersion(AcrobatVersion acrobatVersion) {
this.acrobatVersion = acrobatVersion;
}
public String getXCIURI() {
return this.decodeURL(this.xCIURI);
}
public void setXCIURI(String xCIURI) {
this.xCIURI = xCIURI;
}
public String getCharset() {
return this.charset;
}
public void setCharset(String charset) {
this.charset = charset;
}
public RenderAtClient getRenderAtClient() {
return this.renderAtClient;
}
public void setRenderAtClient(RenderAtClient renderAtClient) {
this.renderAtClient = renderAtClient;
}
public String getLocale() {
return this.locale;
}
public void setLocale(String locale) {
this.locale = locale;
}
public boolean isStandAlone() {
return this.standAlone;
}
public void setStandAlone(boolean standAlone) {
this.standAlone = standAlone;
}
public FormModel getFormModel() {
return this.formModel;
}
public void setFormModel(FormModel formModel) {
this.formModel = formModel;
}
public boolean isXMLData() {
return this.xMLData;
}
public void setXMLData(boolean xMLData) {
this.xMLData = xMLData;
}
private String decodeURL(String sURLEncoded) {
if (sURLEncoded != null && sURLEncoded.indexOf(37) != -1) {
byte[] cDecoded = FormsServiceClientUtils.URLDecode(sURLEncoded);
sURLEncoded = new String(cDecoded);
}
return sURLEncoded;
}
@SinceLC(value="8.2.1")
public boolean isDebugEnabled() {
return this.debugEnabled;
}
public void setDebugEnabled(boolean debugEnabled) {
this.debugEnabled = debugEnabled;
}
@SinceLC(value="8.2.1")
public boolean isClientCache() {
return this.clientCache;
}
public void setClientCache(boolean clientCache) {
this.clientCache = clientCache;
}
@SinceLC(value="9.0.0")
public Boolean getGenerateServerAppearance() {
return this.generateServerAppearance;
}
public void setGenerateServerAppearance(Boolean generateServerAppearance) {
this.generateServerAppearance = generateServerAppearance;
}
public void setInternalOption(String key, String val) {
if (key != null) {
if (this.internalOptionMap == null) {
this.internalOptionMap = new HashMap();
}
this.internalOptionMap.put(key.toLowerCase(), val);
}
}
public String getInternalOption(String key) {
if (this.internalOptionMap != null && key != null) {
return (String)this.internalOptionMap.get(key.toLowerCase());
}
return null;
}
@SinceLC(value="11.0.1")
public int getAuditLog() {
return this.auditLog;
}
public void setAuditLog(int auditLog) {
this.auditLog = auditLog;
}
}