PDFOPI2_0.java
7.12 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
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* com.adobe.internal.pdftoolkit.core.cos.CosArray
* com.adobe.internal.pdftoolkit.core.cos.CosObject
* com.adobe.internal.pdftoolkit.core.exceptions.PDFIOException
* com.adobe.internal.pdftoolkit.core.exceptions.PDFInvalidDocumentException
* com.adobe.internal.pdftoolkit.core.exceptions.PDFInvalidParameterException
* com.adobe.internal.pdftoolkit.core.exceptions.PDFSecurityException
* com.adobe.internal.pdftoolkit.core.types.ASName
* com.adobe.internal.pdftoolkit.core.types.ASString
*/
package com.adobe.internal.pdftoolkit.pdf.interchange.prepress;
import com.adobe.internal.pdftoolkit.core.cos.CosArray;
import com.adobe.internal.pdftoolkit.core.cos.CosObject;
import com.adobe.internal.pdftoolkit.core.exceptions.PDFIOException;
import com.adobe.internal.pdftoolkit.core.exceptions.PDFInvalidDocumentException;
import com.adobe.internal.pdftoolkit.core.exceptions.PDFInvalidParameterException;
import com.adobe.internal.pdftoolkit.core.exceptions.PDFSecurityException;
import com.adobe.internal.pdftoolkit.core.types.ASName;
import com.adobe.internal.pdftoolkit.core.types.ASString;
import com.adobe.internal.pdftoolkit.pdf.document.PDFCosObject;
import com.adobe.internal.pdftoolkit.pdf.document.PDFDocument;
import com.adobe.internal.pdftoolkit.pdf.document.PDFFileSpecification;
import com.adobe.internal.pdftoolkit.pdf.interchange.prepress.PDFOPI;
public class PDFOPI2_0
extends PDFOPI {
PDFOPI2_0(CosObject cosObject) throws PDFInvalidDocumentException {
super(cosObject);
}
PDFOPI2_0(PDFDocument pdfDoc) throws PDFInvalidDocumentException, PDFIOException, PDFSecurityException {
super(pdfDoc);
}
public static PDFOPI2_0 newInstance(PDFDocument pdfDocument, PDFFileSpecification key_F) throws PDFInvalidDocumentException, PDFIOException, PDFSecurityException, PDFInvalidParameterException {
if (key_F == null) {
throw new PDFInvalidParameterException("F is required when creating newInstance of PDFOPI2_0.");
}
PDFOPI2_0 pdfObject = new PDFOPI2_0(pdfDocument);
pdfObject.setFileSpecification(key_F);
pdfObject.setVersion();
return pdfObject;
}
public static PDFOPI2_0 getInstance(CosObject cosObject) throws PDFInvalidDocumentException, PDFIOException, PDFSecurityException {
if (PDFCosObject.checkNullCosObject(cosObject) == null) {
return null;
}
PDFOPI2_0 pdfObject = PDFCosObject.getCachedInstance(cosObject, PDFOPI2_0.class);
if (pdfObject == null) {
pdfObject = new PDFOPI2_0(cosObject);
}
return pdfObject;
}
public boolean getOverprint() throws PDFInvalidDocumentException, PDFIOException, PDFSecurityException {
return this.getDictionaryBooleanValue(ASName.k_Overprint);
}
public void setOverprint(boolean value) throws PDFInvalidDocumentException, PDFIOException, PDFSecurityException {
this.setDictionaryBooleanValue(ASName.k_Overprint, value);
}
public boolean hasOverprint() throws PDFInvalidDocumentException, PDFIOException, PDFSecurityException {
return this.dictionaryContains(ASName.k_Overprint);
}
public double getIncludedImageQuality() throws PDFInvalidDocumentException, PDFIOException, PDFSecurityException {
return this.getDictionaryDoubleValue(ASName.k_IncludedImageQuality);
}
public void setIncludedImageQuality(double value) throws PDFInvalidDocumentException, PDFIOException, PDFSecurityException {
this.setDictionaryDoubleValue(ASName.k_IncludedImageQuality, value);
}
public boolean hasIncludedImageQuality() throws PDFInvalidDocumentException, PDFIOException, PDFSecurityException {
return this.dictionaryContains(ASName.k_IncludedImageQuality);
}
private void setVersion() throws PDFInvalidDocumentException, PDFIOException, PDFSecurityException {
this.setDictionaryDoubleValue(ASName.k_Version, 2.0);
}
public void setSize(CosArray value) throws PDFInvalidDocumentException, PDFIOException, PDFSecurityException, PDFInvalidParameterException {
this.setSize(value, false);
}
public CosArray getIncludedImageDimensions() throws PDFInvalidDocumentException, PDFIOException, PDFSecurityException {
return this.getDictionaryArrayValue(ASName.k_IncludedImageDimensions);
}
public void setIncludedImageDimensions(CosArray value) throws PDFInvalidDocumentException, PDFIOException, PDFSecurityException, PDFInvalidParameterException {
this.setDictionaryValue(ASName.k_IncludedImageDimensions, (CosObject)value);
}
public boolean hasIncludedImageDimensions() throws PDFInvalidDocumentException, PDFIOException, PDFSecurityException {
return this.dictionaryContains(ASName.k_IncludedImageDimensions);
}
public ASString getMainImage() throws PDFInvalidDocumentException, PDFIOException, PDFSecurityException {
return this.getDictionaryStringValue(ASName.k_MainImage);
}
public void setMainImage(ASString value) throws PDFInvalidDocumentException, PDFIOException, PDFSecurityException, PDFInvalidParameterException {
this.setDictionaryASStringValue(ASName.k_MainImage, value);
}
public void setMainImage(byte[] value) throws PDFInvalidDocumentException, PDFIOException, PDFSecurityException, PDFInvalidParameterException {
this.setDictionaryByteArrayValue(ASName.k_MainImage, value);
}
public boolean hasMainImage() throws PDFInvalidDocumentException, PDFIOException, PDFSecurityException {
return this.dictionaryContains(ASName.k_MainImage);
}
public ASName getInksAsName() throws PDFInvalidDocumentException, PDFIOException, PDFSecurityException {
return this.getDictionaryNameValue(ASName.k_Inks);
}
public void setInks(ASName value) throws PDFInvalidDocumentException, PDFIOException, PDFSecurityException, PDFInvalidParameterException {
this.setDictionaryNameValue(ASName.k_Inks, value);
}
public CosArray getInksAsArray() throws PDFInvalidDocumentException, PDFIOException, PDFSecurityException {
CosObject cosObject = this.getDictionaryValue(ASName.k_Inks);
return (CosArray)cosObject;
}
public void setInks(CosArray value) throws PDFInvalidDocumentException, PDFIOException, PDFSecurityException, PDFInvalidParameterException {
this.setDictionaryValue(ASName.k_Inks, (CosObject)value);
}
public boolean hasInks() throws PDFInvalidDocumentException, PDFIOException, PDFSecurityException {
return this.dictionaryContains(ASName.k_Inks);
}
public CosArray getCropRect() throws PDFInvalidDocumentException, PDFIOException, PDFSecurityException {
return this.getDictionaryArrayValue(ASName.k_CropRect);
}
public void setCropRect(CosArray value) throws PDFInvalidDocumentException, PDFIOException, PDFSecurityException, PDFInvalidParameterException {
this.setDictionaryValue(ASName.k_CropRect, (CosObject)value);
}
public boolean hasCropRect() throws PDFInvalidDocumentException, PDFIOException, PDFSecurityException {
return this.dictionaryContains(ASName.k_CropRect);
}
}