PDFPrintingPaperHandling.java
1.13 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
/*
* 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;
import com.adobe.internal.pdftoolkit.core.types.ASName;
import com.adobe.internal.pdftoolkit.pdf.document.PDFASNameInterface;
/*
* This class specifies class file version 49.0 but uses Java 6 signatures. Assumed Java 6.
*/
public enum PDFPrintingPaperHandling implements PDFASNameInterface
{
Simplex(ASName.create((String)"Simplex")),
DuplexFlipShortEdge(ASName.create((String)"DuplexFlipShortEdge")),
DuplexFlipLongEdge(ASName.create((String)"DuplexFlipLongEdge"));
private ASName mHandle;
private PDFPrintingPaperHandling(ASName handle) {
this.mHandle = handle;
}
public static PDFPrintingPaperHandling getInstance(ASName paperHandling) {
for (PDFPrintingPaperHandling p : PDFPrintingPaperHandling.values()) {
if (p.getName() != paperHandling) continue;
return p;
}
return null;
}
@Override
public ASName getName() {
return this.mHandle;
}
}