blob: 29727db721864a5726795155652cfd27f88e3507 [file] [log] [blame]
edisonn@google.com131d4ee2013-06-26 17:48:12 +00001#include "SkPdfPodofoMapper_autogen.h"
2bool mapObject(const SkPdfObject& in, SkPdfObject** out) {
3 return mapObject(*in.doc(), *in.podofo(), out);
4}
5
6bool mapObject(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfObject** out) {
7 if (!isObject(podofoDoc, podofoObj)) return false;
8
9 if (mapArray(podofoDoc, podofoObj, (SkPdfArray**)out)) return true;
10 if (mapBoolean(podofoDoc, podofoObj, (SkPdfBoolean**)out)) return true;
11 if (mapDictionary(podofoDoc, podofoObj, (SkPdfDictionary**)out)) return true;
12 if (mapInteger(podofoDoc, podofoObj, (SkPdfInteger**)out)) return true;
13 if (mapName(podofoDoc, podofoObj, (SkPdfName**)out)) return true;
14 if (mapNull(podofoDoc, podofoObj, (SkPdfNull**)out)) return true;
15 if (mapReference(podofoDoc, podofoObj, (SkPdfReference**)out)) return true;
16 if (mapString(podofoDoc, podofoObj, (SkPdfString**)out)) return true;
17 if (mapStream(podofoDoc, podofoObj, (SkPdfStream**)out)) return true;
18
19 *out = new SkPdfObject(&podofoDoc, &podofoObj);
20 return true;
21}
22
23bool mapNull(const SkPdfObject& in, SkPdfNull** out) {
24 return mapNull(*in.doc(), *in.podofo(), out);
25}
26
27bool mapNull(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfNull** out) {
28 if (!isNull(podofoDoc, podofoObj)) return false;
29
30
31 *out = new SkPdfNull(&podofoDoc, &podofoObj);
32 return true;
33}
34
35bool mapBoolean(const SkPdfObject& in, SkPdfBoolean** out) {
36 return mapBoolean(*in.doc(), *in.podofo(), out);
37}
38
39bool mapBoolean(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfBoolean** out) {
40 if (!isBoolean(podofoDoc, podofoObj)) return false;
41
42
43 *out = new SkPdfBoolean(&podofoDoc, &podofoObj);
44 return true;
45}
46
47bool mapInteger(const SkPdfObject& in, SkPdfInteger** out) {
48 return mapInteger(*in.doc(), *in.podofo(), out);
49}
50
51bool mapInteger(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfInteger** out) {
52 if (!isInteger(podofoDoc, podofoObj)) return false;
53
54 if (mapNumber(podofoDoc, podofoObj, (SkPdfNumber**)out)) return true;
55
56 *out = new SkPdfInteger(&podofoDoc, &podofoObj);
57 return true;
58}
59
60bool mapNumber(const SkPdfObject& in, SkPdfNumber** out) {
61 return mapNumber(*in.doc(), *in.podofo(), out);
62}
63
64bool mapNumber(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfNumber** out) {
65 if (!isNumber(podofoDoc, podofoObj)) return false;
66
67
68 *out = new SkPdfNumber(&podofoDoc, &podofoObj);
69 return true;
70}
71
72bool mapName(const SkPdfObject& in, SkPdfName** out) {
73 return mapName(*in.doc(), *in.podofo(), out);
74}
75
76bool mapName(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfName** out) {
77 if (!isName(podofoDoc, podofoObj)) return false;
78
79
80 *out = new SkPdfName(&podofoDoc, &podofoObj);
81 return true;
82}
83
84bool mapReference(const SkPdfObject& in, SkPdfReference** out) {
85 return mapReference(*in.doc(), *in.podofo(), out);
86}
87
88bool mapReference(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfReference** out) {
89 if (!isReference(podofoDoc, podofoObj)) return false;
90
91
92 *out = new SkPdfReference(&podofoDoc, &podofoObj);
93 return true;
94}
95
96bool mapArray(const SkPdfObject& in, SkPdfArray** out) {
97 return mapArray(*in.doc(), *in.podofo(), out);
98}
99
100bool mapArray(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfArray** out) {
101 if (!isArray(podofoDoc, podofoObj)) return false;
102
103
104 *out = new SkPdfArray(&podofoDoc, &podofoObj);
105 return true;
106}
107
108bool mapString(const SkPdfObject& in, SkPdfString** out) {
109 return mapString(*in.doc(), *in.podofo(), out);
110}
111
112bool mapString(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfString** out) {
113 if (!isString(podofoDoc, podofoObj)) return false;
114
115 if (mapHexString(podofoDoc, podofoObj, (SkPdfHexString**)out)) return true;
116
117 *out = new SkPdfString(&podofoDoc, &podofoObj);
118 return true;
119}
120
121bool mapHexString(const SkPdfObject& in, SkPdfHexString** out) {
122 return mapHexString(*in.doc(), *in.podofo(), out);
123}
124
125bool mapHexString(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfHexString** out) {
126 if (!isHexString(podofoDoc, podofoObj)) return false;
127
128
129 *out = new SkPdfHexString(&podofoDoc, &podofoObj);
130 return true;
131}
132
133bool mapDictionary(const SkPdfObject& in, SkPdfDictionary** out) {
134 return mapDictionary(*in.doc(), *in.podofo(), out);
135}
136
137bool mapDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfDictionary** out) {
138 if (!isDictionary(podofoDoc, podofoObj)) return false;
139
140 if (mapALinkAnnotationDictionary(podofoDoc, podofoObj, (SkPdfALinkAnnotationDictionary**)out)) return true;
141 if (mapActionDictionary(podofoDoc, podofoObj, (SkPdfActionDictionary**)out)) return true;
142 if (mapAlternateImageDictionary(podofoDoc, podofoObj, (SkPdfAlternateImageDictionary**)out)) return true;
143 if (mapAnnotationActionsDictionary(podofoDoc, podofoObj, (SkPdfAnnotationActionsDictionary**)out)) return true;
144 if (mapAnnotationDictionary(podofoDoc, podofoObj, (SkPdfAnnotationDictionary**)out)) return true;
145 if (mapAppearanceCharacteristicsDictionary(podofoDoc, podofoObj, (SkPdfAppearanceCharacteristicsDictionary**)out)) return true;
146 if (mapAppearanceDictionary(podofoDoc, podofoObj, (SkPdfAppearanceDictionary**)out)) return true;
147 if (mapApplicationDataDictionary(podofoDoc, podofoObj, (SkPdfApplicationDataDictionary**)out)) return true;
148 if (mapArtifactsDictionary(podofoDoc, podofoObj, (SkPdfArtifactsDictionary**)out)) return true;
149 if (mapAttributeObjectDictionary(podofoDoc, podofoObj, (SkPdfAttributeObjectDictionary**)out)) return true;
150 if (mapBeadDictionary(podofoDoc, podofoObj, (SkPdfBeadDictionary**)out)) return true;
151 if (mapBlockLevelStructureElementsDictionary(podofoDoc, podofoObj, (SkPdfBlockLevelStructureElementsDictionary**)out)) return true;
152 if (mapBorderStyleDictionary(podofoDoc, podofoObj, (SkPdfBorderStyleDictionary**)out)) return true;
153 if (mapBoxColorInformationDictionary(podofoDoc, podofoObj, (SkPdfBoxColorInformationDictionary**)out)) return true;
154 if (mapBoxStyleDictionary(podofoDoc, podofoObj, (SkPdfBoxStyleDictionary**)out)) return true;
155 if (mapCIDFontDescriptorDictionary(podofoDoc, podofoObj, (SkPdfCIDFontDescriptorDictionary**)out)) return true;
edisonn@google.com6e49c342013-06-27 20:03:43 +0000156 if (mapCIDFontDictionary(podofoDoc, podofoObj, (SkPdfCIDFontDictionary**)out)) return true;
edisonn@google.com131d4ee2013-06-26 17:48:12 +0000157 if (mapCIDSystemInfoDictionary(podofoDoc, podofoObj, (SkPdfCIDSystemInfoDictionary**)out)) return true;
158 if (mapCMapDictionary(podofoDoc, podofoObj, (SkPdfCMapDictionary**)out)) return true;
159 if (mapCalgrayColorSpaceDictionary(podofoDoc, podofoObj, (SkPdfCalgrayColorSpaceDictionary**)out)) return true;
160 if (mapCalrgbColorSpaceDictionary(podofoDoc, podofoObj, (SkPdfCalrgbColorSpaceDictionary**)out)) return true;
161 if (mapCatalogDictionary(podofoDoc, podofoObj, (SkPdfCatalogDictionary**)out)) return true;
162 if (mapCcittfaxdecodeFilterDictionary(podofoDoc, podofoObj, (SkPdfCcittfaxdecodeFilterDictionary**)out)) return true;
163 if (mapCheckboxFieldDictionary(podofoDoc, podofoObj, (SkPdfCheckboxFieldDictionary**)out)) return true;
164 if (mapChoiceFieldDictionary(podofoDoc, podofoObj, (SkPdfChoiceFieldDictionary**)out)) return true;
165 if (mapComponentsWithMetadataDictionary(podofoDoc, podofoObj, (SkPdfComponentsWithMetadataDictionary**)out)) return true;
166 if (mapDctdecodeFilterDictionary(podofoDoc, podofoObj, (SkPdfDctdecodeFilterDictionary**)out)) return true;
167 if (mapDeviceNColorSpaceDictionary(podofoDoc, podofoObj, (SkPdfDeviceNColorSpaceDictionary**)out)) return true;
168 if (mapDocumentCatalogActionsDictionary(podofoDoc, podofoObj, (SkPdfDocumentCatalogActionsDictionary**)out)) return true;
169 if (mapDocumentInformationDictionary(podofoDoc, podofoObj, (SkPdfDocumentInformationDictionary**)out)) return true;
170 if (mapEmbeddedFileParameterDictionary(podofoDoc, podofoObj, (SkPdfEmbeddedFileParameterDictionary**)out)) return true;
171 if (mapEmbeddedFileStreamDictionary(podofoDoc, podofoObj, (SkPdfEmbeddedFileStreamDictionary**)out)) return true;
172 if (mapEmbeddedFontStreamDictionary(podofoDoc, podofoObj, (SkPdfEmbeddedFontStreamDictionary**)out)) return true;
173 if (mapEncodingDictionary(podofoDoc, podofoObj, (SkPdfEncodingDictionary**)out)) return true;
174 if (mapEncryptedEmbeddedFileStreamDictionary(podofoDoc, podofoObj, (SkPdfEncryptedEmbeddedFileStreamDictionary**)out)) return true;
175 if (mapEncryptionCommonDictionary(podofoDoc, podofoObj, (SkPdfEncryptionCommonDictionary**)out)) return true;
176 if (mapFDFCatalogDictionary(podofoDoc, podofoObj, (SkPdfFDFCatalogDictionary**)out)) return true;
177 if (mapFDFDictionary(podofoDoc, podofoObj, (SkPdfFDFDictionary**)out)) return true;
178 if (mapFDFFieldDictionary(podofoDoc, podofoObj, (SkPdfFDFFieldDictionary**)out)) return true;
179 if (mapFDFFileAnnotationDictionary(podofoDoc, podofoObj, (SkPdfFDFFileAnnotationDictionary**)out)) return true;
180 if (mapFDFNamedPageReferenceDictionary(podofoDoc, podofoObj, (SkPdfFDFNamedPageReferenceDictionary**)out)) return true;
181 if (mapFDFPageDictionary(podofoDoc, podofoObj, (SkPdfFDFPageDictionary**)out)) return true;
182 if (mapFDFTemplateDictionary(podofoDoc, podofoObj, (SkPdfFDFTemplateDictionary**)out)) return true;
183 if (mapFDFTrailerDictionary(podofoDoc, podofoObj, (SkPdfFDFTrailerDictionary**)out)) return true;
184 if (mapFieldDictionary(podofoDoc, podofoObj, (SkPdfFieldDictionary**)out)) return true;
185 if (mapFileAttachmentAnnotationDictionary(podofoDoc, podofoObj, (SkPdfFileAttachmentAnnotationDictionary**)out)) return true;
186 if (mapFileSpecificationDictionary(podofoDoc, podofoObj, (SkPdfFileSpecificationDictionary**)out)) return true;
187 if (mapFileTrailerDictionary(podofoDoc, podofoObj, (SkPdfFileTrailerDictionary**)out)) return true;
188 if (mapFontDescriptorDictionary(podofoDoc, podofoObj, (SkPdfFontDescriptorDictionary**)out)) return true;
189 if (mapFontDictionary(podofoDoc, podofoObj, (SkPdfFontDictionary**)out)) return true;
190 if (mapFormFieldActionsDictionary(podofoDoc, podofoObj, (SkPdfFormFieldActionsDictionary**)out)) return true;
191 if (mapFreeTextAnnotationDictionary(podofoDoc, podofoObj, (SkPdfFreeTextAnnotationDictionary**)out)) return true;
192 if (mapFunctionCommonDictionary(podofoDoc, podofoObj, (SkPdfFunctionCommonDictionary**)out)) return true;
193 if (mapGoToActionDictionary(podofoDoc, podofoObj, (SkPdfGoToActionDictionary**)out)) return true;
194 if (mapGraphicsStateDictionary(podofoDoc, podofoObj, (SkPdfGraphicsStateDictionary**)out)) return true;
195 if (mapGroupAttributesDictionary(podofoDoc, podofoObj, (SkPdfGroupAttributesDictionary**)out)) return true;
196 if (mapHideActionDictionary(podofoDoc, podofoObj, (SkPdfHideActionDictionary**)out)) return true;
197 if (mapIccProfileStreamDictionary(podofoDoc, podofoObj, (SkPdfIccProfileStreamDictionary**)out)) return true;
198 if (mapIconFitDictionary(podofoDoc, podofoObj, (SkPdfIconFitDictionary**)out)) return true;
199 if (mapImportDataActionDictionary(podofoDoc, podofoObj, (SkPdfImportDataActionDictionary**)out)) return true;
200 if (mapInkAnnotationDictionary(podofoDoc, podofoObj, (SkPdfInkAnnotationDictionary**)out)) return true;
201 if (mapInlineLevelStructureElementsDictionary(podofoDoc, podofoObj, (SkPdfInlineLevelStructureElementsDictionary**)out)) return true;
202 if (mapInteractiveFormDictionary(podofoDoc, podofoObj, (SkPdfInteractiveFormDictionary**)out)) return true;
203 if (mapJavascriptActionDictionary(podofoDoc, podofoObj, (SkPdfJavascriptActionDictionary**)out)) return true;
204 if (mapJavascriptDictionary(podofoDoc, podofoObj, (SkPdfJavascriptDictionary**)out)) return true;
205 if (mapJbig2DecodeFilterDictionary(podofoDoc, podofoObj, (SkPdfJbig2DecodeFilterDictionary**)out)) return true;
206 if (mapLabColorSpaceDictionary(podofoDoc, podofoObj, (SkPdfLabColorSpaceDictionary**)out)) return true;
207 if (mapLaunchActionDictionary(podofoDoc, podofoObj, (SkPdfLaunchActionDictionary**)out)) return true;
208 if (mapLineAnnotationDictionary(podofoDoc, podofoObj, (SkPdfLineAnnotationDictionary**)out)) return true;
209 if (mapListAttributeDictionary(podofoDoc, podofoObj, (SkPdfListAttributeDictionary**)out)) return true;
210 if (mapLzwdecodeAndFlatedecodeFiltersDictionary(podofoDoc, podofoObj, (SkPdfLzwdecodeAndFlatedecodeFiltersDictionary**)out)) return true;
211 if (mapMacOsFileInformationDictionary(podofoDoc, podofoObj, (SkPdfMacOsFileInformationDictionary**)out)) return true;
212 if (mapMarkInformationDictionary(podofoDoc, podofoObj, (SkPdfMarkInformationDictionary**)out)) return true;
213 if (mapMarkedContentReferenceDictionary(podofoDoc, podofoObj, (SkPdfMarkedContentReferenceDictionary**)out)) return true;
214 if (mapMarkupAnnotationsDictionary(podofoDoc, podofoObj, (SkPdfMarkupAnnotationsDictionary**)out)) return true;
215 if (mapMetadataStreamDictionary(podofoDoc, podofoObj, (SkPdfMetadataStreamDictionary**)out)) return true;
216 if (mapMovieActionDictionary(podofoDoc, podofoObj, (SkPdfMovieActionDictionary**)out)) return true;
217 if (mapMovieActivationDictionary(podofoDoc, podofoObj, (SkPdfMovieActivationDictionary**)out)) return true;
218 if (mapMovieAnnotationDictionary(podofoDoc, podofoObj, (SkPdfMovieAnnotationDictionary**)out)) return true;
219 if (mapMovieDictionary(podofoDoc, podofoObj, (SkPdfMovieDictionary**)out)) return true;
220 if (mapNameDictionary(podofoDoc, podofoObj, (SkPdfNameDictionary**)out)) return true;
221 if (mapNameTreeNodeDictionary(podofoDoc, podofoObj, (SkPdfNameTreeNodeDictionary**)out)) return true;
222 if (mapNamedActionsDictionary(podofoDoc, podofoObj, (SkPdfNamedActionsDictionary**)out)) return true;
223 if (mapNumberTreeNodeDictionary(podofoDoc, podofoObj, (SkPdfNumberTreeNodeDictionary**)out)) return true;
224 if (mapObjectReferenceDictionary(podofoDoc, podofoObj, (SkPdfObjectReferenceDictionary**)out)) return true;
225 if (mapOpiVersionDictionary(podofoDoc, podofoObj, (SkPdfOpiVersionDictionary**)out)) return true;
226 if (mapOutlineDictionary(podofoDoc, podofoObj, (SkPdfOutlineDictionary**)out)) return true;
227 if (mapOutlineItemDictionary(podofoDoc, podofoObj, (SkPdfOutlineItemDictionary**)out)) return true;
228 if (mapPDF_XOutputIntentDictionary(podofoDoc, podofoObj, (SkPdfPDF_XOutputIntentDictionary**)out)) return true;
229 if (mapPSXobjectDictionary(podofoDoc, podofoObj, (SkPdfPSXobjectDictionary**)out)) return true;
230 if (mapPageLabelDictionary(podofoDoc, podofoObj, (SkPdfPageLabelDictionary**)out)) return true;
231 if (mapPageObjectActionsDictionary(podofoDoc, podofoObj, (SkPdfPageObjectActionsDictionary**)out)) return true;
232 if (mapPageObjectDictionary(podofoDoc, podofoObj, (SkPdfPageObjectDictionary**)out)) return true;
233 if (mapPagePieceDictionary(podofoDoc, podofoObj, (SkPdfPagePieceDictionary**)out)) return true;
234 if (mapPageTreeNodeDictionary(podofoDoc, podofoObj, (SkPdfPageTreeNodeDictionary**)out)) return true;
235 if (mapPopUpAnnotationDictionary(podofoDoc, podofoObj, (SkPdfPopUpAnnotationDictionary**)out)) return true;
236 if (mapPrinterMarkAnnotationDictionary(podofoDoc, podofoObj, (SkPdfPrinterMarkAnnotationDictionary**)out)) return true;
237 if (mapPrinterMarkFormDictionary(podofoDoc, podofoObj, (SkPdfPrinterMarkFormDictionary**)out)) return true;
238 if (mapRadioButtonFieldDictionary(podofoDoc, podofoObj, (SkPdfRadioButtonFieldDictionary**)out)) return true;
239 if (mapReferenceDictionary(podofoDoc, podofoObj, (SkPdfReferenceDictionary**)out)) return true;
240 if (mapRemoteGoToActionDictionary(podofoDoc, podofoObj, (SkPdfRemoteGoToActionDictionary**)out)) return true;
241 if (mapResetFormActionDictionary(podofoDoc, podofoObj, (SkPdfResetFormActionDictionary**)out)) return true;
242 if (mapResourceDictionary(podofoDoc, podofoObj, (SkPdfResourceDictionary**)out)) return true;
243 if (mapRubberStampAnnotationDictionary(podofoDoc, podofoObj, (SkPdfRubberStampAnnotationDictionary**)out)) return true;
244 if (mapSeparationDictionary(podofoDoc, podofoObj, (SkPdfSeparationDictionary**)out)) return true;
245 if (mapShadingDictionary(podofoDoc, podofoObj, (SkPdfShadingDictionary**)out)) return true;
246 if (mapSignatureDictionary(podofoDoc, podofoObj, (SkPdfSignatureDictionary**)out)) return true;
247 if (mapSoftMaskDictionary(podofoDoc, podofoObj, (SkPdfSoftMaskDictionary**)out)) return true;
248 if (mapSoftMaskImageDictionary(podofoDoc, podofoObj, (SkPdfSoftMaskImageDictionary**)out)) return true;
249 if (mapSoundActionDictionary(podofoDoc, podofoObj, (SkPdfSoundActionDictionary**)out)) return true;
250 if (mapSoundAnnotationDictionary(podofoDoc, podofoObj, (SkPdfSoundAnnotationDictionary**)out)) return true;
251 if (mapSoundObjectDictionary(podofoDoc, podofoObj, (SkPdfSoundObjectDictionary**)out)) return true;
252 if (mapSourceInformationDictionary(podofoDoc, podofoObj, (SkPdfSourceInformationDictionary**)out)) return true;
253 if (mapSquareOrCircleAnnotation(podofoDoc, podofoObj, (SkPdfSquareOrCircleAnnotation**)out)) return true;
254 if (mapStandardSecurityHandlerDictionary(podofoDoc, podofoObj, (SkPdfStandardSecurityHandlerDictionary**)out)) return true;
255 if (mapStandardStructureDictionary(podofoDoc, podofoObj, (SkPdfStandardStructureDictionary**)out)) return true;
256 if (mapStreamCommonDictionary(podofoDoc, podofoObj, (SkPdfStreamCommonDictionary**)out)) return true;
257 if (mapStructureElementAccessDictionary(podofoDoc, podofoObj, (SkPdfStructureElementAccessDictionary**)out)) return true;
258 if (mapStructureElementDictionary(podofoDoc, podofoObj, (SkPdfStructureElementDictionary**)out)) return true;
259 if (mapStructureTreeRootDictionary(podofoDoc, podofoObj, (SkPdfStructureTreeRootDictionary**)out)) return true;
260 if (mapSubmitFormActionDictionary(podofoDoc, podofoObj, (SkPdfSubmitFormActionDictionary**)out)) return true;
261 if (mapTableAttributesDictionary(podofoDoc, podofoObj, (SkPdfTableAttributesDictionary**)out)) return true;
262 if (mapTextAnnotationDictionary(podofoDoc, podofoObj, (SkPdfTextAnnotationDictionary**)out)) return true;
263 if (mapTextFieldDictionary(podofoDoc, podofoObj, (SkPdfTextFieldDictionary**)out)) return true;
264 if (mapThreadActionDictionary(podofoDoc, podofoObj, (SkPdfThreadActionDictionary**)out)) return true;
265 if (mapThreadDictionary(podofoDoc, podofoObj, (SkPdfThreadDictionary**)out)) return true;
266 if (mapTransitionDictionary(podofoDoc, podofoObj, (SkPdfTransitionDictionary**)out)) return true;
267 if (mapTransparencyGroupDictionary(podofoDoc, podofoObj, (SkPdfTransparencyGroupDictionary**)out)) return true;
268 if (mapTrapNetworkAnnotationDictionary(podofoDoc, podofoObj, (SkPdfTrapNetworkAnnotationDictionary**)out)) return true;
269 if (mapTrapNetworkAppearanceStreamDictionary(podofoDoc, podofoObj, (SkPdfTrapNetworkAppearanceStreamDictionary**)out)) return true;
270 if (mapType0FunctionDictionary(podofoDoc, podofoObj, (SkPdfType0FunctionDictionary**)out)) return true;
271 if (mapType10HalftoneDictionary(podofoDoc, podofoObj, (SkPdfType10HalftoneDictionary**)out)) return true;
272 if (mapType16HalftoneDictionary(podofoDoc, podofoObj, (SkPdfType16HalftoneDictionary**)out)) return true;
273 if (mapType1HalftoneDictionary(podofoDoc, podofoObj, (SkPdfType1HalftoneDictionary**)out)) return true;
274 if (mapType1PatternDictionary(podofoDoc, podofoObj, (SkPdfType1PatternDictionary**)out)) return true;
275 if (mapType2FunctionDictionary(podofoDoc, podofoObj, (SkPdfType2FunctionDictionary**)out)) return true;
276 if (mapType2PatternDictionary(podofoDoc, podofoObj, (SkPdfType2PatternDictionary**)out)) return true;
277 if (mapType3FunctionDictionary(podofoDoc, podofoObj, (SkPdfType3FunctionDictionary**)out)) return true;
278 if (mapType5HalftoneDictionary(podofoDoc, podofoObj, (SkPdfType5HalftoneDictionary**)out)) return true;
279 if (mapType6HalftoneDictionary(podofoDoc, podofoObj, (SkPdfType6HalftoneDictionary**)out)) return true;
280 if (mapURIActionDictionary(podofoDoc, podofoObj, (SkPdfURIActionDictionary**)out)) return true;
281 if (mapURIDictionary(podofoDoc, podofoObj, (SkPdfURIDictionary**)out)) return true;
282 if (mapURLAliasDictionary(podofoDoc, podofoObj, (SkPdfURLAliasDictionary**)out)) return true;
283 if (mapVariableTextFieldDictionary(podofoDoc, podofoObj, (SkPdfVariableTextFieldDictionary**)out)) return true;
284 if (mapViewerPreferencesDictionary(podofoDoc, podofoObj, (SkPdfViewerPreferencesDictionary**)out)) return true;
285 if (mapWebCaptureCommandDictionary(podofoDoc, podofoObj, (SkPdfWebCaptureCommandDictionary**)out)) return true;
286 if (mapWebCaptureCommandSettingsDictionary(podofoDoc, podofoObj, (SkPdfWebCaptureCommandSettingsDictionary**)out)) return true;
287 if (mapWebCaptureDictionary(podofoDoc, podofoObj, (SkPdfWebCaptureDictionary**)out)) return true;
288 if (mapWebCaptureImageSetDictionary(podofoDoc, podofoObj, (SkPdfWebCaptureImageSetDictionary**)out)) return true;
289 if (mapWebCaptureInformationDictionary(podofoDoc, podofoObj, (SkPdfWebCaptureInformationDictionary**)out)) return true;
290 if (mapWebCapturePageSetDictionary(podofoDoc, podofoObj, (SkPdfWebCapturePageSetDictionary**)out)) return true;
291 if (mapWidgetAnnotationDictionary(podofoDoc, podofoObj, (SkPdfWidgetAnnotationDictionary**)out)) return true;
292 if (mapWindowsLaunchActionDictionary(podofoDoc, podofoObj, (SkPdfWindowsLaunchActionDictionary**)out)) return true;
293 if (mapXObjectDictionary(podofoDoc, podofoObj, (SkPdfXObjectDictionary**)out)) return true;
294
295 *out = new SkPdfDictionary(&podofoDoc, &podofoObj);
296 return true;
297}
298
299bool mapStream(const SkPdfObject& in, SkPdfStream** out) {
300 return mapStream(*in.doc(), *in.podofo(), out);
301}
302
303bool mapStream(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfStream** out) {
304 if (!isStream(podofoDoc, podofoObj)) return false;
305
306
307 *out = new SkPdfStream(&podofoDoc, &podofoObj);
308 return true;
309}
310
311bool mapXObjectDictionary(const SkPdfObject& in, SkPdfXObjectDictionary** out) {
312 return mapXObjectDictionary(*in.doc(), *in.podofo(), out);
313}
314
315bool mapXObjectDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfXObjectDictionary** out) {
316 if (!isXObjectDictionary(podofoDoc, podofoObj)) return false;
317
318 if (mapImageDictionary(podofoDoc, podofoObj, (SkPdfImageDictionary**)out)) return true;
319 if (mapType1FormDictionary(podofoDoc, podofoObj, (SkPdfType1FormDictionary**)out)) return true;
320
321 *out = new SkPdfXObjectDictionary(&podofoDoc, &podofoObj);
322 return true;
323}
324
325bool mapFontDictionary(const SkPdfObject& in, SkPdfFontDictionary** out) {
326 return mapFontDictionary(*in.doc(), *in.podofo(), out);
327}
328
329bool mapFontDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfFontDictionary** out) {
330 if (!isFontDictionary(podofoDoc, podofoObj)) return false;
331
edisonn@google.com131d4ee2013-06-26 17:48:12 +0000332 if (mapType0FontDictionary(podofoDoc, podofoObj, (SkPdfType0FontDictionary**)out)) return true;
333 if (mapType1FontDictionary(podofoDoc, podofoObj, (SkPdfType1FontDictionary**)out)) return true;
334
335 *out = new SkPdfFontDictionary(&podofoDoc, &podofoObj);
336 return true;
337}
338
339bool mapTrueTypeFontDictionary(const SkPdfObject& in, SkPdfTrueTypeFontDictionary** out) {
340 return mapTrueTypeFontDictionary(*in.doc(), *in.podofo(), out);
341}
342
343bool mapTrueTypeFontDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfTrueTypeFontDictionary** out) {
344 if (!isTrueTypeFontDictionary(podofoDoc, podofoObj)) return false;
345
346
347 *out = new SkPdfTrueTypeFontDictionary(&podofoDoc, &podofoObj);
348 return true;
349}
350
351bool mapStreamCommonDictionary(const SkPdfObject& in, SkPdfStreamCommonDictionary** out) {
352 return mapStreamCommonDictionary(*in.doc(), *in.podofo(), out);
353}
354
355bool mapStreamCommonDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfStreamCommonDictionary** out) {
356 if (!isStreamCommonDictionary(podofoDoc, podofoObj)) return false;
357
358
359 *out = new SkPdfStreamCommonDictionary(&podofoDoc, &podofoObj);
360 return true;
361}
362
363bool mapLzwdecodeAndFlatedecodeFiltersDictionary(const SkPdfObject& in, SkPdfLzwdecodeAndFlatedecodeFiltersDictionary** out) {
364 return mapLzwdecodeAndFlatedecodeFiltersDictionary(*in.doc(), *in.podofo(), out);
365}
366
367bool mapLzwdecodeAndFlatedecodeFiltersDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfLzwdecodeAndFlatedecodeFiltersDictionary** out) {
368 if (!isLzwdecodeAndFlatedecodeFiltersDictionary(podofoDoc, podofoObj)) return false;
369
370
371 *out = new SkPdfLzwdecodeAndFlatedecodeFiltersDictionary(&podofoDoc, &podofoObj);
372 return true;
373}
374
375bool mapCcittfaxdecodeFilterDictionary(const SkPdfObject& in, SkPdfCcittfaxdecodeFilterDictionary** out) {
376 return mapCcittfaxdecodeFilterDictionary(*in.doc(), *in.podofo(), out);
377}
378
379bool mapCcittfaxdecodeFilterDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfCcittfaxdecodeFilterDictionary** out) {
380 if (!isCcittfaxdecodeFilterDictionary(podofoDoc, podofoObj)) return false;
381
382
383 *out = new SkPdfCcittfaxdecodeFilterDictionary(&podofoDoc, &podofoObj);
384 return true;
385}
386
387bool mapJbig2DecodeFilterDictionary(const SkPdfObject& in, SkPdfJbig2DecodeFilterDictionary** out) {
388 return mapJbig2DecodeFilterDictionary(*in.doc(), *in.podofo(), out);
389}
390
391bool mapJbig2DecodeFilterDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfJbig2DecodeFilterDictionary** out) {
392 if (!isJbig2DecodeFilterDictionary(podofoDoc, podofoObj)) return false;
393
394
395 *out = new SkPdfJbig2DecodeFilterDictionary(&podofoDoc, &podofoObj);
396 return true;
397}
398
399bool mapDctdecodeFilterDictionary(const SkPdfObject& in, SkPdfDctdecodeFilterDictionary** out) {
400 return mapDctdecodeFilterDictionary(*in.doc(), *in.podofo(), out);
401}
402
403bool mapDctdecodeFilterDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfDctdecodeFilterDictionary** out) {
404 if (!isDctdecodeFilterDictionary(podofoDoc, podofoObj)) return false;
405
406
407 *out = new SkPdfDctdecodeFilterDictionary(&podofoDoc, &podofoObj);
408 return true;
409}
410
411bool mapFileTrailerDictionary(const SkPdfObject& in, SkPdfFileTrailerDictionary** out) {
412 return mapFileTrailerDictionary(*in.doc(), *in.podofo(), out);
413}
414
415bool mapFileTrailerDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfFileTrailerDictionary** out) {
416 if (!isFileTrailerDictionary(podofoDoc, podofoObj)) return false;
417
418
419 *out = new SkPdfFileTrailerDictionary(&podofoDoc, &podofoObj);
420 return true;
421}
422
423bool mapEncryptionCommonDictionary(const SkPdfObject& in, SkPdfEncryptionCommonDictionary** out) {
424 return mapEncryptionCommonDictionary(*in.doc(), *in.podofo(), out);
425}
426
427bool mapEncryptionCommonDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfEncryptionCommonDictionary** out) {
428 if (!isEncryptionCommonDictionary(podofoDoc, podofoObj)) return false;
429
430
431 *out = new SkPdfEncryptionCommonDictionary(&podofoDoc, &podofoObj);
432 return true;
433}
434
435bool mapStandardSecurityHandlerDictionary(const SkPdfObject& in, SkPdfStandardSecurityHandlerDictionary** out) {
436 return mapStandardSecurityHandlerDictionary(*in.doc(), *in.podofo(), out);
437}
438
439bool mapStandardSecurityHandlerDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfStandardSecurityHandlerDictionary** out) {
440 if (!isStandardSecurityHandlerDictionary(podofoDoc, podofoObj)) return false;
441
442
443 *out = new SkPdfStandardSecurityHandlerDictionary(&podofoDoc, &podofoObj);
444 return true;
445}
446
447bool mapCatalogDictionary(const SkPdfObject& in, SkPdfCatalogDictionary** out) {
448 return mapCatalogDictionary(*in.doc(), *in.podofo(), out);
449}
450
451bool mapCatalogDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfCatalogDictionary** out) {
452 if (!isCatalogDictionary(podofoDoc, podofoObj)) return false;
453
454
455 *out = new SkPdfCatalogDictionary(&podofoDoc, &podofoObj);
456 return true;
457}
458
459bool mapPageTreeNodeDictionary(const SkPdfObject& in, SkPdfPageTreeNodeDictionary** out) {
460 return mapPageTreeNodeDictionary(*in.doc(), *in.podofo(), out);
461}
462
463bool mapPageTreeNodeDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfPageTreeNodeDictionary** out) {
464 if (!isPageTreeNodeDictionary(podofoDoc, podofoObj)) return false;
465
466
467 *out = new SkPdfPageTreeNodeDictionary(&podofoDoc, &podofoObj);
468 return true;
469}
470
471bool mapPageObjectDictionary(const SkPdfObject& in, SkPdfPageObjectDictionary** out) {
472 return mapPageObjectDictionary(*in.doc(), *in.podofo(), out);
473}
474
475bool mapPageObjectDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfPageObjectDictionary** out) {
476 if (!isPageObjectDictionary(podofoDoc, podofoObj)) return false;
477
478
479 *out = new SkPdfPageObjectDictionary(&podofoDoc, &podofoObj);
480 return true;
481}
482
483bool mapNameDictionary(const SkPdfObject& in, SkPdfNameDictionary** out) {
484 return mapNameDictionary(*in.doc(), *in.podofo(), out);
485}
486
487bool mapNameDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfNameDictionary** out) {
488 if (!isNameDictionary(podofoDoc, podofoObj)) return false;
489
490
491 *out = new SkPdfNameDictionary(&podofoDoc, &podofoObj);
492 return true;
493}
494
495bool mapResourceDictionary(const SkPdfObject& in, SkPdfResourceDictionary** out) {
496 return mapResourceDictionary(*in.doc(), *in.podofo(), out);
497}
498
499bool mapResourceDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfResourceDictionary** out) {
500 if (!isResourceDictionary(podofoDoc, podofoObj)) return false;
501
502
503 *out = new SkPdfResourceDictionary(&podofoDoc, &podofoObj);
504 return true;
505}
506
507bool mapNameTreeNodeDictionary(const SkPdfObject& in, SkPdfNameTreeNodeDictionary** out) {
508 return mapNameTreeNodeDictionary(*in.doc(), *in.podofo(), out);
509}
510
511bool mapNameTreeNodeDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfNameTreeNodeDictionary** out) {
512 if (!isNameTreeNodeDictionary(podofoDoc, podofoObj)) return false;
513
514
515 *out = new SkPdfNameTreeNodeDictionary(&podofoDoc, &podofoObj);
516 return true;
517}
518
519bool mapNumberTreeNodeDictionary(const SkPdfObject& in, SkPdfNumberTreeNodeDictionary** out) {
520 return mapNumberTreeNodeDictionary(*in.doc(), *in.podofo(), out);
521}
522
523bool mapNumberTreeNodeDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfNumberTreeNodeDictionary** out) {
524 if (!isNumberTreeNodeDictionary(podofoDoc, podofoObj)) return false;
525
526
527 *out = new SkPdfNumberTreeNodeDictionary(&podofoDoc, &podofoObj);
528 return true;
529}
530
531bool mapFunctionCommonDictionary(const SkPdfObject& in, SkPdfFunctionCommonDictionary** out) {
532 return mapFunctionCommonDictionary(*in.doc(), *in.podofo(), out);
533}
534
535bool mapFunctionCommonDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfFunctionCommonDictionary** out) {
536 if (!isFunctionCommonDictionary(podofoDoc, podofoObj)) return false;
537
538
539 *out = new SkPdfFunctionCommonDictionary(&podofoDoc, &podofoObj);
540 return true;
541}
542
543bool mapType0FunctionDictionary(const SkPdfObject& in, SkPdfType0FunctionDictionary** out) {
544 return mapType0FunctionDictionary(*in.doc(), *in.podofo(), out);
545}
546
547bool mapType0FunctionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfType0FunctionDictionary** out) {
548 if (!isType0FunctionDictionary(podofoDoc, podofoObj)) return false;
549
550
551 *out = new SkPdfType0FunctionDictionary(&podofoDoc, &podofoObj);
552 return true;
553}
554
555bool mapType2FunctionDictionary(const SkPdfObject& in, SkPdfType2FunctionDictionary** out) {
556 return mapType2FunctionDictionary(*in.doc(), *in.podofo(), out);
557}
558
559bool mapType2FunctionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfType2FunctionDictionary** out) {
560 if (!isType2FunctionDictionary(podofoDoc, podofoObj)) return false;
561
562
563 *out = new SkPdfType2FunctionDictionary(&podofoDoc, &podofoObj);
564 return true;
565}
566
567bool mapType3FunctionDictionary(const SkPdfObject& in, SkPdfType3FunctionDictionary** out) {
568 return mapType3FunctionDictionary(*in.doc(), *in.podofo(), out);
569}
570
571bool mapType3FunctionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfType3FunctionDictionary** out) {
572 if (!isType3FunctionDictionary(podofoDoc, podofoObj)) return false;
573
574
575 *out = new SkPdfType3FunctionDictionary(&podofoDoc, &podofoObj);
576 return true;
577}
578
579bool mapFileSpecificationDictionary(const SkPdfObject& in, SkPdfFileSpecificationDictionary** out) {
580 return mapFileSpecificationDictionary(*in.doc(), *in.podofo(), out);
581}
582
583bool mapFileSpecificationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfFileSpecificationDictionary** out) {
584 if (!isFileSpecificationDictionary(podofoDoc, podofoObj)) return false;
585
586
587 *out = new SkPdfFileSpecificationDictionary(&podofoDoc, &podofoObj);
588 return true;
589}
590
591bool mapEmbeddedFileStreamDictionary(const SkPdfObject& in, SkPdfEmbeddedFileStreamDictionary** out) {
592 return mapEmbeddedFileStreamDictionary(*in.doc(), *in.podofo(), out);
593}
594
595bool mapEmbeddedFileStreamDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfEmbeddedFileStreamDictionary** out) {
596 if (!isEmbeddedFileStreamDictionary(podofoDoc, podofoObj)) return false;
597
598
599 *out = new SkPdfEmbeddedFileStreamDictionary(&podofoDoc, &podofoObj);
600 return true;
601}
602
603bool mapEmbeddedFileParameterDictionary(const SkPdfObject& in, SkPdfEmbeddedFileParameterDictionary** out) {
604 return mapEmbeddedFileParameterDictionary(*in.doc(), *in.podofo(), out);
605}
606
607bool mapEmbeddedFileParameterDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfEmbeddedFileParameterDictionary** out) {
608 if (!isEmbeddedFileParameterDictionary(podofoDoc, podofoObj)) return false;
609
610
611 *out = new SkPdfEmbeddedFileParameterDictionary(&podofoDoc, &podofoObj);
612 return true;
613}
614
615bool mapMacOsFileInformationDictionary(const SkPdfObject& in, SkPdfMacOsFileInformationDictionary** out) {
616 return mapMacOsFileInformationDictionary(*in.doc(), *in.podofo(), out);
617}
618
619bool mapMacOsFileInformationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfMacOsFileInformationDictionary** out) {
620 if (!isMacOsFileInformationDictionary(podofoDoc, podofoObj)) return false;
621
622
623 *out = new SkPdfMacOsFileInformationDictionary(&podofoDoc, &podofoObj);
624 return true;
625}
626
627bool mapGraphicsStateDictionary(const SkPdfObject& in, SkPdfGraphicsStateDictionary** out) {
628 return mapGraphicsStateDictionary(*in.doc(), *in.podofo(), out);
629}
630
631bool mapGraphicsStateDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfGraphicsStateDictionary** out) {
632 if (!isGraphicsStateDictionary(podofoDoc, podofoObj)) return false;
633
634
635 *out = new SkPdfGraphicsStateDictionary(&podofoDoc, &podofoObj);
636 return true;
637}
638
639bool mapCalgrayColorSpaceDictionary(const SkPdfObject& in, SkPdfCalgrayColorSpaceDictionary** out) {
640 return mapCalgrayColorSpaceDictionary(*in.doc(), *in.podofo(), out);
641}
642
643bool mapCalgrayColorSpaceDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfCalgrayColorSpaceDictionary** out) {
644 if (!isCalgrayColorSpaceDictionary(podofoDoc, podofoObj)) return false;
645
646
647 *out = new SkPdfCalgrayColorSpaceDictionary(&podofoDoc, &podofoObj);
648 return true;
649}
650
651bool mapCalrgbColorSpaceDictionary(const SkPdfObject& in, SkPdfCalrgbColorSpaceDictionary** out) {
652 return mapCalrgbColorSpaceDictionary(*in.doc(), *in.podofo(), out);
653}
654
655bool mapCalrgbColorSpaceDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfCalrgbColorSpaceDictionary** out) {
656 if (!isCalrgbColorSpaceDictionary(podofoDoc, podofoObj)) return false;
657
658
659 *out = new SkPdfCalrgbColorSpaceDictionary(&podofoDoc, &podofoObj);
660 return true;
661}
662
663bool mapLabColorSpaceDictionary(const SkPdfObject& in, SkPdfLabColorSpaceDictionary** out) {
664 return mapLabColorSpaceDictionary(*in.doc(), *in.podofo(), out);
665}
666
667bool mapLabColorSpaceDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfLabColorSpaceDictionary** out) {
668 if (!isLabColorSpaceDictionary(podofoDoc, podofoObj)) return false;
669
670
671 *out = new SkPdfLabColorSpaceDictionary(&podofoDoc, &podofoObj);
672 return true;
673}
674
675bool mapIccProfileStreamDictionary(const SkPdfObject& in, SkPdfIccProfileStreamDictionary** out) {
676 return mapIccProfileStreamDictionary(*in.doc(), *in.podofo(), out);
677}
678
679bool mapIccProfileStreamDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfIccProfileStreamDictionary** out) {
680 if (!isIccProfileStreamDictionary(podofoDoc, podofoObj)) return false;
681
682
683 *out = new SkPdfIccProfileStreamDictionary(&podofoDoc, &podofoObj);
684 return true;
685}
686
687bool mapDeviceNColorSpaceDictionary(const SkPdfObject& in, SkPdfDeviceNColorSpaceDictionary** out) {
688 return mapDeviceNColorSpaceDictionary(*in.doc(), *in.podofo(), out);
689}
690
691bool mapDeviceNColorSpaceDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfDeviceNColorSpaceDictionary** out) {
692 if (!isDeviceNColorSpaceDictionary(podofoDoc, podofoObj)) return false;
693
694
695 *out = new SkPdfDeviceNColorSpaceDictionary(&podofoDoc, &podofoObj);
696 return true;
697}
698
699bool mapType1PatternDictionary(const SkPdfObject& in, SkPdfType1PatternDictionary** out) {
700 return mapType1PatternDictionary(*in.doc(), *in.podofo(), out);
701}
702
703bool mapType1PatternDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfType1PatternDictionary** out) {
704 if (!isType1PatternDictionary(podofoDoc, podofoObj)) return false;
705
706
707 *out = new SkPdfType1PatternDictionary(&podofoDoc, &podofoObj);
708 return true;
709}
710
711bool mapType2PatternDictionary(const SkPdfObject& in, SkPdfType2PatternDictionary** out) {
712 return mapType2PatternDictionary(*in.doc(), *in.podofo(), out);
713}
714
715bool mapType2PatternDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfType2PatternDictionary** out) {
716 if (!isType2PatternDictionary(podofoDoc, podofoObj)) return false;
717
718
719 *out = new SkPdfType2PatternDictionary(&podofoDoc, &podofoObj);
720 return true;
721}
722
723bool mapShadingDictionary(const SkPdfObject& in, SkPdfShadingDictionary** out) {
724 return mapShadingDictionary(*in.doc(), *in.podofo(), out);
725}
726
727bool mapShadingDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfShadingDictionary** out) {
728 if (!isShadingDictionary(podofoDoc, podofoObj)) return false;
729
730 if (mapType1ShadingDictionary(podofoDoc, podofoObj, (SkPdfType1ShadingDictionary**)out)) return true;
731 if (mapType2ShadingDictionary(podofoDoc, podofoObj, (SkPdfType2ShadingDictionary**)out)) return true;
732 if (mapType3ShadingDictionary(podofoDoc, podofoObj, (SkPdfType3ShadingDictionary**)out)) return true;
733 if (mapType4ShadingDictionary(podofoDoc, podofoObj, (SkPdfType4ShadingDictionary**)out)) return true;
734 if (mapType5ShadingDictionary(podofoDoc, podofoObj, (SkPdfType5ShadingDictionary**)out)) return true;
735 if (mapType6ShadingDictionary(podofoDoc, podofoObj, (SkPdfType6ShadingDictionary**)out)) return true;
736
737 *out = new SkPdfShadingDictionary(&podofoDoc, &podofoObj);
738 return true;
739}
740
741bool mapType1ShadingDictionary(const SkPdfObject& in, SkPdfType1ShadingDictionary** out) {
742 return mapType1ShadingDictionary(*in.doc(), *in.podofo(), out);
743}
744
745bool mapType1ShadingDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfType1ShadingDictionary** out) {
746 if (!isType1ShadingDictionary(podofoDoc, podofoObj)) return false;
747
748
749 *out = new SkPdfType1ShadingDictionary(&podofoDoc, &podofoObj);
750 return true;
751}
752
753bool mapType2ShadingDictionary(const SkPdfObject& in, SkPdfType2ShadingDictionary** out) {
754 return mapType2ShadingDictionary(*in.doc(), *in.podofo(), out);
755}
756
757bool mapType2ShadingDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfType2ShadingDictionary** out) {
758 if (!isType2ShadingDictionary(podofoDoc, podofoObj)) return false;
759
760
761 *out = new SkPdfType2ShadingDictionary(&podofoDoc, &podofoObj);
762 return true;
763}
764
765bool mapType3ShadingDictionary(const SkPdfObject& in, SkPdfType3ShadingDictionary** out) {
766 return mapType3ShadingDictionary(*in.doc(), *in.podofo(), out);
767}
768
769bool mapType3ShadingDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfType3ShadingDictionary** out) {
770 if (!isType3ShadingDictionary(podofoDoc, podofoObj)) return false;
771
772
773 *out = new SkPdfType3ShadingDictionary(&podofoDoc, &podofoObj);
774 return true;
775}
776
777bool mapType4ShadingDictionary(const SkPdfObject& in, SkPdfType4ShadingDictionary** out) {
778 return mapType4ShadingDictionary(*in.doc(), *in.podofo(), out);
779}
780
781bool mapType4ShadingDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfType4ShadingDictionary** out) {
782 if (!isType4ShadingDictionary(podofoDoc, podofoObj)) return false;
783
784
785 *out = new SkPdfType4ShadingDictionary(&podofoDoc, &podofoObj);
786 return true;
787}
788
789bool mapType5ShadingDictionary(const SkPdfObject& in, SkPdfType5ShadingDictionary** out) {
790 return mapType5ShadingDictionary(*in.doc(), *in.podofo(), out);
791}
792
793bool mapType5ShadingDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfType5ShadingDictionary** out) {
794 if (!isType5ShadingDictionary(podofoDoc, podofoObj)) return false;
795
796
797 *out = new SkPdfType5ShadingDictionary(&podofoDoc, &podofoObj);
798 return true;
799}
800
801bool mapType6ShadingDictionary(const SkPdfObject& in, SkPdfType6ShadingDictionary** out) {
802 return mapType6ShadingDictionary(*in.doc(), *in.podofo(), out);
803}
804
805bool mapType6ShadingDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfType6ShadingDictionary** out) {
806 if (!isType6ShadingDictionary(podofoDoc, podofoObj)) return false;
807
808
809 *out = new SkPdfType6ShadingDictionary(&podofoDoc, &podofoObj);
810 return true;
811}
812
813bool mapImageDictionary(const SkPdfObject& in, SkPdfImageDictionary** out) {
814 return mapImageDictionary(*in.doc(), *in.podofo(), out);
815}
816
817bool mapImageDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfImageDictionary** out) {
818 if (!isImageDictionary(podofoDoc, podofoObj)) return false;
819
820
821 *out = new SkPdfImageDictionary(&podofoDoc, &podofoObj);
822 return true;
823}
824
825bool mapAlternateImageDictionary(const SkPdfObject& in, SkPdfAlternateImageDictionary** out) {
826 return mapAlternateImageDictionary(*in.doc(), *in.podofo(), out);
827}
828
829bool mapAlternateImageDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfAlternateImageDictionary** out) {
830 if (!isAlternateImageDictionary(podofoDoc, podofoObj)) return false;
831
832
833 *out = new SkPdfAlternateImageDictionary(&podofoDoc, &podofoObj);
834 return true;
835}
836
837bool mapType1FormDictionary(const SkPdfObject& in, SkPdfType1FormDictionary** out) {
838 return mapType1FormDictionary(*in.doc(), *in.podofo(), out);
839}
840
841bool mapType1FormDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfType1FormDictionary** out) {
842 if (!isType1FormDictionary(podofoDoc, podofoObj)) return false;
843
844
845 *out = new SkPdfType1FormDictionary(&podofoDoc, &podofoObj);
846 return true;
847}
848
849bool mapGroupAttributesDictionary(const SkPdfObject& in, SkPdfGroupAttributesDictionary** out) {
850 return mapGroupAttributesDictionary(*in.doc(), *in.podofo(), out);
851}
852
853bool mapGroupAttributesDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfGroupAttributesDictionary** out) {
854 if (!isGroupAttributesDictionary(podofoDoc, podofoObj)) return false;
855
856
857 *out = new SkPdfGroupAttributesDictionary(&podofoDoc, &podofoObj);
858 return true;
859}
860
861bool mapReferenceDictionary(const SkPdfObject& in, SkPdfReferenceDictionary** out) {
862 return mapReferenceDictionary(*in.doc(), *in.podofo(), out);
863}
864
865bool mapReferenceDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfReferenceDictionary** out) {
866 if (!isReferenceDictionary(podofoDoc, podofoObj)) return false;
867
868
869 *out = new SkPdfReferenceDictionary(&podofoDoc, &podofoObj);
870 return true;
871}
872
873bool mapPSXobjectDictionary(const SkPdfObject& in, SkPdfPSXobjectDictionary** out) {
874 return mapPSXobjectDictionary(*in.doc(), *in.podofo(), out);
875}
876
877bool mapPSXobjectDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfPSXobjectDictionary** out) {
878 if (!isPSXobjectDictionary(podofoDoc, podofoObj)) return false;
879
880
881 *out = new SkPdfPSXobjectDictionary(&podofoDoc, &podofoObj);
882 return true;
883}
884
885bool mapType1FontDictionary(const SkPdfObject& in, SkPdfType1FontDictionary** out) {
886 return mapType1FontDictionary(*in.doc(), *in.podofo(), out);
887}
888
889bool mapType1FontDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfType1FontDictionary** out) {
890 if (!isType1FontDictionary(podofoDoc, podofoObj)) return false;
891
892 if (mapMultiMasterFontDictionary(podofoDoc, podofoObj, (SkPdfMultiMasterFontDictionary**)out)) return true;
893 if (mapTrueTypeFontDictionary(podofoDoc, podofoObj, (SkPdfTrueTypeFontDictionary**)out)) return true;
894 if (mapType3FontDictionary(podofoDoc, podofoObj, (SkPdfType3FontDictionary**)out)) return true;
895
896 *out = new SkPdfType1FontDictionary(&podofoDoc, &podofoObj);
897 return true;
898}
899
900bool mapType3FontDictionary(const SkPdfObject& in, SkPdfType3FontDictionary** out) {
901 return mapType3FontDictionary(*in.doc(), *in.podofo(), out);
902}
903
904bool mapType3FontDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfType3FontDictionary** out) {
905 if (!isType3FontDictionary(podofoDoc, podofoObj)) return false;
906
907
908 *out = new SkPdfType3FontDictionary(&podofoDoc, &podofoObj);
909 return true;
910}
911
912bool mapEncodingDictionary(const SkPdfObject& in, SkPdfEncodingDictionary** out) {
913 return mapEncodingDictionary(*in.doc(), *in.podofo(), out);
914}
915
916bool mapEncodingDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfEncodingDictionary** out) {
917 if (!isEncodingDictionary(podofoDoc, podofoObj)) return false;
918
919
920 *out = new SkPdfEncodingDictionary(&podofoDoc, &podofoObj);
921 return true;
922}
923
924bool mapCIDSystemInfoDictionary(const SkPdfObject& in, SkPdfCIDSystemInfoDictionary** out) {
925 return mapCIDSystemInfoDictionary(*in.doc(), *in.podofo(), out);
926}
927
928bool mapCIDSystemInfoDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfCIDSystemInfoDictionary** out) {
929 if (!isCIDSystemInfoDictionary(podofoDoc, podofoObj)) return false;
930
931
932 *out = new SkPdfCIDSystemInfoDictionary(&podofoDoc, &podofoObj);
933 return true;
934}
935
936bool mapCIDFontDictionary(const SkPdfObject& in, SkPdfCIDFontDictionary** out) {
937 return mapCIDFontDictionary(*in.doc(), *in.podofo(), out);
938}
939
940bool mapCIDFontDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfCIDFontDictionary** out) {
941 if (!isCIDFontDictionary(podofoDoc, podofoObj)) return false;
942
943
944 *out = new SkPdfCIDFontDictionary(&podofoDoc, &podofoObj);
945 return true;
946}
947
948bool mapCMapDictionary(const SkPdfObject& in, SkPdfCMapDictionary** out) {
949 return mapCMapDictionary(*in.doc(), *in.podofo(), out);
950}
951
952bool mapCMapDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfCMapDictionary** out) {
953 if (!isCMapDictionary(podofoDoc, podofoObj)) return false;
954
955
956 *out = new SkPdfCMapDictionary(&podofoDoc, &podofoObj);
957 return true;
958}
959
960bool mapType0FontDictionary(const SkPdfObject& in, SkPdfType0FontDictionary** out) {
961 return mapType0FontDictionary(*in.doc(), *in.podofo(), out);
962}
963
964bool mapType0FontDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfType0FontDictionary** out) {
965 if (!isType0FontDictionary(podofoDoc, podofoObj)) return false;
966
967
968 *out = new SkPdfType0FontDictionary(&podofoDoc, &podofoObj);
969 return true;
970}
971
972bool mapFontDescriptorDictionary(const SkPdfObject& in, SkPdfFontDescriptorDictionary** out) {
973 return mapFontDescriptorDictionary(*in.doc(), *in.podofo(), out);
974}
975
976bool mapFontDescriptorDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfFontDescriptorDictionary** out) {
977 if (!isFontDescriptorDictionary(podofoDoc, podofoObj)) return false;
978
979
980 *out = new SkPdfFontDescriptorDictionary(&podofoDoc, &podofoObj);
981 return true;
982}
983
984bool mapCIDFontDescriptorDictionary(const SkPdfObject& in, SkPdfCIDFontDescriptorDictionary** out) {
985 return mapCIDFontDescriptorDictionary(*in.doc(), *in.podofo(), out);
986}
987
988bool mapCIDFontDescriptorDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfCIDFontDescriptorDictionary** out) {
989 if (!isCIDFontDescriptorDictionary(podofoDoc, podofoObj)) return false;
990
991
992 *out = new SkPdfCIDFontDescriptorDictionary(&podofoDoc, &podofoObj);
993 return true;
994}
995
996bool mapEmbeddedFontStreamDictionary(const SkPdfObject& in, SkPdfEmbeddedFontStreamDictionary** out) {
997 return mapEmbeddedFontStreamDictionary(*in.doc(), *in.podofo(), out);
998}
999
1000bool mapEmbeddedFontStreamDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfEmbeddedFontStreamDictionary** out) {
1001 if (!isEmbeddedFontStreamDictionary(podofoDoc, podofoObj)) return false;
1002
1003
1004 *out = new SkPdfEmbeddedFontStreamDictionary(&podofoDoc, &podofoObj);
1005 return true;
1006}
1007
1008bool mapType1HalftoneDictionary(const SkPdfObject& in, SkPdfType1HalftoneDictionary** out) {
1009 return mapType1HalftoneDictionary(*in.doc(), *in.podofo(), out);
1010}
1011
1012bool mapType1HalftoneDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfType1HalftoneDictionary** out) {
1013 if (!isType1HalftoneDictionary(podofoDoc, podofoObj)) return false;
1014
1015
1016 *out = new SkPdfType1HalftoneDictionary(&podofoDoc, &podofoObj);
1017 return true;
1018}
1019
1020bool mapType6HalftoneDictionary(const SkPdfObject& in, SkPdfType6HalftoneDictionary** out) {
1021 return mapType6HalftoneDictionary(*in.doc(), *in.podofo(), out);
1022}
1023
1024bool mapType6HalftoneDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfType6HalftoneDictionary** out) {
1025 if (!isType6HalftoneDictionary(podofoDoc, podofoObj)) return false;
1026
1027
1028 *out = new SkPdfType6HalftoneDictionary(&podofoDoc, &podofoObj);
1029 return true;
1030}
1031
1032bool mapType10HalftoneDictionary(const SkPdfObject& in, SkPdfType10HalftoneDictionary** out) {
1033 return mapType10HalftoneDictionary(*in.doc(), *in.podofo(), out);
1034}
1035
1036bool mapType10HalftoneDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfType10HalftoneDictionary** out) {
1037 if (!isType10HalftoneDictionary(podofoDoc, podofoObj)) return false;
1038
1039
1040 *out = new SkPdfType10HalftoneDictionary(&podofoDoc, &podofoObj);
1041 return true;
1042}
1043
1044bool mapType16HalftoneDictionary(const SkPdfObject& in, SkPdfType16HalftoneDictionary** out) {
1045 return mapType16HalftoneDictionary(*in.doc(), *in.podofo(), out);
1046}
1047
1048bool mapType16HalftoneDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfType16HalftoneDictionary** out) {
1049 if (!isType16HalftoneDictionary(podofoDoc, podofoObj)) return false;
1050
1051
1052 *out = new SkPdfType16HalftoneDictionary(&podofoDoc, &podofoObj);
1053 return true;
1054}
1055
1056bool mapType5HalftoneDictionary(const SkPdfObject& in, SkPdfType5HalftoneDictionary** out) {
1057 return mapType5HalftoneDictionary(*in.doc(), *in.podofo(), out);
1058}
1059
1060bool mapType5HalftoneDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfType5HalftoneDictionary** out) {
1061 if (!isType5HalftoneDictionary(podofoDoc, podofoObj)) return false;
1062
1063
1064 *out = new SkPdfType5HalftoneDictionary(&podofoDoc, &podofoObj);
1065 return true;
1066}
1067
1068bool mapSoftMaskDictionary(const SkPdfObject& in, SkPdfSoftMaskDictionary** out) {
1069 return mapSoftMaskDictionary(*in.doc(), *in.podofo(), out);
1070}
1071
1072bool mapSoftMaskDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfSoftMaskDictionary** out) {
1073 if (!isSoftMaskDictionary(podofoDoc, podofoObj)) return false;
1074
1075
1076 *out = new SkPdfSoftMaskDictionary(&podofoDoc, &podofoObj);
1077 return true;
1078}
1079
1080bool mapSoftMaskImageDictionary(const SkPdfObject& in, SkPdfSoftMaskImageDictionary** out) {
1081 return mapSoftMaskImageDictionary(*in.doc(), *in.podofo(), out);
1082}
1083
1084bool mapSoftMaskImageDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfSoftMaskImageDictionary** out) {
1085 if (!isSoftMaskImageDictionary(podofoDoc, podofoObj)) return false;
1086
1087
1088 *out = new SkPdfSoftMaskImageDictionary(&podofoDoc, &podofoObj);
1089 return true;
1090}
1091
1092bool mapTransparencyGroupDictionary(const SkPdfObject& in, SkPdfTransparencyGroupDictionary** out) {
1093 return mapTransparencyGroupDictionary(*in.doc(), *in.podofo(), out);
1094}
1095
1096bool mapTransparencyGroupDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfTransparencyGroupDictionary** out) {
1097 if (!isTransparencyGroupDictionary(podofoDoc, podofoObj)) return false;
1098
1099
1100 *out = new SkPdfTransparencyGroupDictionary(&podofoDoc, &podofoObj);
1101 return true;
1102}
1103
1104bool mapViewerPreferencesDictionary(const SkPdfObject& in, SkPdfViewerPreferencesDictionary** out) {
1105 return mapViewerPreferencesDictionary(*in.doc(), *in.podofo(), out);
1106}
1107
1108bool mapViewerPreferencesDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfViewerPreferencesDictionary** out) {
1109 if (!isViewerPreferencesDictionary(podofoDoc, podofoObj)) return false;
1110
1111
1112 *out = new SkPdfViewerPreferencesDictionary(&podofoDoc, &podofoObj);
1113 return true;
1114}
1115
1116bool mapOutlineDictionary(const SkPdfObject& in, SkPdfOutlineDictionary** out) {
1117 return mapOutlineDictionary(*in.doc(), *in.podofo(), out);
1118}
1119
1120bool mapOutlineDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfOutlineDictionary** out) {
1121 if (!isOutlineDictionary(podofoDoc, podofoObj)) return false;
1122
1123
1124 *out = new SkPdfOutlineDictionary(&podofoDoc, &podofoObj);
1125 return true;
1126}
1127
1128bool mapOutlineItemDictionary(const SkPdfObject& in, SkPdfOutlineItemDictionary** out) {
1129 return mapOutlineItemDictionary(*in.doc(), *in.podofo(), out);
1130}
1131
1132bool mapOutlineItemDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfOutlineItemDictionary** out) {
1133 if (!isOutlineItemDictionary(podofoDoc, podofoObj)) return false;
1134
1135
1136 *out = new SkPdfOutlineItemDictionary(&podofoDoc, &podofoObj);
1137 return true;
1138}
1139
1140bool mapPageLabelDictionary(const SkPdfObject& in, SkPdfPageLabelDictionary** out) {
1141 return mapPageLabelDictionary(*in.doc(), *in.podofo(), out);
1142}
1143
1144bool mapPageLabelDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfPageLabelDictionary** out) {
1145 if (!isPageLabelDictionary(podofoDoc, podofoObj)) return false;
1146
1147
1148 *out = new SkPdfPageLabelDictionary(&podofoDoc, &podofoObj);
1149 return true;
1150}
1151
1152bool mapThreadDictionary(const SkPdfObject& in, SkPdfThreadDictionary** out) {
1153 return mapThreadDictionary(*in.doc(), *in.podofo(), out);
1154}
1155
1156bool mapThreadDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfThreadDictionary** out) {
1157 if (!isThreadDictionary(podofoDoc, podofoObj)) return false;
1158
1159
1160 *out = new SkPdfThreadDictionary(&podofoDoc, &podofoObj);
1161 return true;
1162}
1163
1164bool mapBeadDictionary(const SkPdfObject& in, SkPdfBeadDictionary** out) {
1165 return mapBeadDictionary(*in.doc(), *in.podofo(), out);
1166}
1167
1168bool mapBeadDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfBeadDictionary** out) {
1169 if (!isBeadDictionary(podofoDoc, podofoObj)) return false;
1170
1171
1172 *out = new SkPdfBeadDictionary(&podofoDoc, &podofoObj);
1173 return true;
1174}
1175
1176bool mapTransitionDictionary(const SkPdfObject& in, SkPdfTransitionDictionary** out) {
1177 return mapTransitionDictionary(*in.doc(), *in.podofo(), out);
1178}
1179
1180bool mapTransitionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfTransitionDictionary** out) {
1181 if (!isTransitionDictionary(podofoDoc, podofoObj)) return false;
1182
1183
1184 *out = new SkPdfTransitionDictionary(&podofoDoc, &podofoObj);
1185 return true;
1186}
1187
1188bool mapAnnotationDictionary(const SkPdfObject& in, SkPdfAnnotationDictionary** out) {
1189 return mapAnnotationDictionary(*in.doc(), *in.podofo(), out);
1190}
1191
1192bool mapAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfAnnotationDictionary** out) {
1193 if (!isAnnotationDictionary(podofoDoc, podofoObj)) return false;
1194
1195
1196 *out = new SkPdfAnnotationDictionary(&podofoDoc, &podofoObj);
1197 return true;
1198}
1199
1200bool mapBorderStyleDictionary(const SkPdfObject& in, SkPdfBorderStyleDictionary** out) {
1201 return mapBorderStyleDictionary(*in.doc(), *in.podofo(), out);
1202}
1203
1204bool mapBorderStyleDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfBorderStyleDictionary** out) {
1205 if (!isBorderStyleDictionary(podofoDoc, podofoObj)) return false;
1206
1207
1208 *out = new SkPdfBorderStyleDictionary(&podofoDoc, &podofoObj);
1209 return true;
1210}
1211
1212bool mapAppearanceDictionary(const SkPdfObject& in, SkPdfAppearanceDictionary** out) {
1213 return mapAppearanceDictionary(*in.doc(), *in.podofo(), out);
1214}
1215
1216bool mapAppearanceDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfAppearanceDictionary** out) {
1217 if (!isAppearanceDictionary(podofoDoc, podofoObj)) return false;
1218
1219
1220 *out = new SkPdfAppearanceDictionary(&podofoDoc, &podofoObj);
1221 return true;
1222}
1223
1224bool mapTextAnnotationDictionary(const SkPdfObject& in, SkPdfTextAnnotationDictionary** out) {
1225 return mapTextAnnotationDictionary(*in.doc(), *in.podofo(), out);
1226}
1227
1228bool mapTextAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfTextAnnotationDictionary** out) {
1229 if (!isTextAnnotationDictionary(podofoDoc, podofoObj)) return false;
1230
1231
1232 *out = new SkPdfTextAnnotationDictionary(&podofoDoc, &podofoObj);
1233 return true;
1234}
1235
1236bool mapALinkAnnotationDictionary(const SkPdfObject& in, SkPdfALinkAnnotationDictionary** out) {
1237 return mapALinkAnnotationDictionary(*in.doc(), *in.podofo(), out);
1238}
1239
1240bool mapALinkAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfALinkAnnotationDictionary** out) {
1241 if (!isALinkAnnotationDictionary(podofoDoc, podofoObj)) return false;
1242
1243
1244 *out = new SkPdfALinkAnnotationDictionary(&podofoDoc, &podofoObj);
1245 return true;
1246}
1247
1248bool mapFreeTextAnnotationDictionary(const SkPdfObject& in, SkPdfFreeTextAnnotationDictionary** out) {
1249 return mapFreeTextAnnotationDictionary(*in.doc(), *in.podofo(), out);
1250}
1251
1252bool mapFreeTextAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfFreeTextAnnotationDictionary** out) {
1253 if (!isFreeTextAnnotationDictionary(podofoDoc, podofoObj)) return false;
1254
1255
1256 *out = new SkPdfFreeTextAnnotationDictionary(&podofoDoc, &podofoObj);
1257 return true;
1258}
1259
1260bool mapLineAnnotationDictionary(const SkPdfObject& in, SkPdfLineAnnotationDictionary** out) {
1261 return mapLineAnnotationDictionary(*in.doc(), *in.podofo(), out);
1262}
1263
1264bool mapLineAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfLineAnnotationDictionary** out) {
1265 if (!isLineAnnotationDictionary(podofoDoc, podofoObj)) return false;
1266
1267
1268 *out = new SkPdfLineAnnotationDictionary(&podofoDoc, &podofoObj);
1269 return true;
1270}
1271
1272bool mapSquareOrCircleAnnotation(const SkPdfObject& in, SkPdfSquareOrCircleAnnotation** out) {
1273 return mapSquareOrCircleAnnotation(*in.doc(), *in.podofo(), out);
1274}
1275
1276bool mapSquareOrCircleAnnotation(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfSquareOrCircleAnnotation** out) {
1277 if (!isSquareOrCircleAnnotation(podofoDoc, podofoObj)) return false;
1278
1279
1280 *out = new SkPdfSquareOrCircleAnnotation(&podofoDoc, &podofoObj);
1281 return true;
1282}
1283
1284bool mapMarkupAnnotationsDictionary(const SkPdfObject& in, SkPdfMarkupAnnotationsDictionary** out) {
1285 return mapMarkupAnnotationsDictionary(*in.doc(), *in.podofo(), out);
1286}
1287
1288bool mapMarkupAnnotationsDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfMarkupAnnotationsDictionary** out) {
1289 if (!isMarkupAnnotationsDictionary(podofoDoc, podofoObj)) return false;
1290
1291
1292 *out = new SkPdfMarkupAnnotationsDictionary(&podofoDoc, &podofoObj);
1293 return true;
1294}
1295
1296bool mapRubberStampAnnotationDictionary(const SkPdfObject& in, SkPdfRubberStampAnnotationDictionary** out) {
1297 return mapRubberStampAnnotationDictionary(*in.doc(), *in.podofo(), out);
1298}
1299
1300bool mapRubberStampAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfRubberStampAnnotationDictionary** out) {
1301 if (!isRubberStampAnnotationDictionary(podofoDoc, podofoObj)) return false;
1302
1303
1304 *out = new SkPdfRubberStampAnnotationDictionary(&podofoDoc, &podofoObj);
1305 return true;
1306}
1307
1308bool mapInkAnnotationDictionary(const SkPdfObject& in, SkPdfInkAnnotationDictionary** out) {
1309 return mapInkAnnotationDictionary(*in.doc(), *in.podofo(), out);
1310}
1311
1312bool mapInkAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfInkAnnotationDictionary** out) {
1313 if (!isInkAnnotationDictionary(podofoDoc, podofoObj)) return false;
1314
1315
1316 *out = new SkPdfInkAnnotationDictionary(&podofoDoc, &podofoObj);
1317 return true;
1318}
1319
1320bool mapPopUpAnnotationDictionary(const SkPdfObject& in, SkPdfPopUpAnnotationDictionary** out) {
1321 return mapPopUpAnnotationDictionary(*in.doc(), *in.podofo(), out);
1322}
1323
1324bool mapPopUpAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfPopUpAnnotationDictionary** out) {
1325 if (!isPopUpAnnotationDictionary(podofoDoc, podofoObj)) return false;
1326
1327
1328 *out = new SkPdfPopUpAnnotationDictionary(&podofoDoc, &podofoObj);
1329 return true;
1330}
1331
1332bool mapFileAttachmentAnnotationDictionary(const SkPdfObject& in, SkPdfFileAttachmentAnnotationDictionary** out) {
1333 return mapFileAttachmentAnnotationDictionary(*in.doc(), *in.podofo(), out);
1334}
1335
1336bool mapFileAttachmentAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfFileAttachmentAnnotationDictionary** out) {
1337 if (!isFileAttachmentAnnotationDictionary(podofoDoc, podofoObj)) return false;
1338
1339
1340 *out = new SkPdfFileAttachmentAnnotationDictionary(&podofoDoc, &podofoObj);
1341 return true;
1342}
1343
1344bool mapSoundAnnotationDictionary(const SkPdfObject& in, SkPdfSoundAnnotationDictionary** out) {
1345 return mapSoundAnnotationDictionary(*in.doc(), *in.podofo(), out);
1346}
1347
1348bool mapSoundAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfSoundAnnotationDictionary** out) {
1349 if (!isSoundAnnotationDictionary(podofoDoc, podofoObj)) return false;
1350
1351
1352 *out = new SkPdfSoundAnnotationDictionary(&podofoDoc, &podofoObj);
1353 return true;
1354}
1355
1356bool mapMovieAnnotationDictionary(const SkPdfObject& in, SkPdfMovieAnnotationDictionary** out) {
1357 return mapMovieAnnotationDictionary(*in.doc(), *in.podofo(), out);
1358}
1359
1360bool mapMovieAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfMovieAnnotationDictionary** out) {
1361 if (!isMovieAnnotationDictionary(podofoDoc, podofoObj)) return false;
1362
1363
1364 *out = new SkPdfMovieAnnotationDictionary(&podofoDoc, &podofoObj);
1365 return true;
1366}
1367
1368bool mapWidgetAnnotationDictionary(const SkPdfObject& in, SkPdfWidgetAnnotationDictionary** out) {
1369 return mapWidgetAnnotationDictionary(*in.doc(), *in.podofo(), out);
1370}
1371
1372bool mapWidgetAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfWidgetAnnotationDictionary** out) {
1373 if (!isWidgetAnnotationDictionary(podofoDoc, podofoObj)) return false;
1374
1375
1376 *out = new SkPdfWidgetAnnotationDictionary(&podofoDoc, &podofoObj);
1377 return true;
1378}
1379
1380bool mapActionDictionary(const SkPdfObject& in, SkPdfActionDictionary** out) {
1381 return mapActionDictionary(*in.doc(), *in.podofo(), out);
1382}
1383
1384bool mapActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfActionDictionary** out) {
1385 if (!isActionDictionary(podofoDoc, podofoObj)) return false;
1386
1387
1388 *out = new SkPdfActionDictionary(&podofoDoc, &podofoObj);
1389 return true;
1390}
1391
1392bool mapAnnotationActionsDictionary(const SkPdfObject& in, SkPdfAnnotationActionsDictionary** out) {
1393 return mapAnnotationActionsDictionary(*in.doc(), *in.podofo(), out);
1394}
1395
1396bool mapAnnotationActionsDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfAnnotationActionsDictionary** out) {
1397 if (!isAnnotationActionsDictionary(podofoDoc, podofoObj)) return false;
1398
1399
1400 *out = new SkPdfAnnotationActionsDictionary(&podofoDoc, &podofoObj);
1401 return true;
1402}
1403
1404bool mapPageObjectActionsDictionary(const SkPdfObject& in, SkPdfPageObjectActionsDictionary** out) {
1405 return mapPageObjectActionsDictionary(*in.doc(), *in.podofo(), out);
1406}
1407
1408bool mapPageObjectActionsDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfPageObjectActionsDictionary** out) {
1409 if (!isPageObjectActionsDictionary(podofoDoc, podofoObj)) return false;
1410
1411
1412 *out = new SkPdfPageObjectActionsDictionary(&podofoDoc, &podofoObj);
1413 return true;
1414}
1415
1416bool mapFormFieldActionsDictionary(const SkPdfObject& in, SkPdfFormFieldActionsDictionary** out) {
1417 return mapFormFieldActionsDictionary(*in.doc(), *in.podofo(), out);
1418}
1419
1420bool mapFormFieldActionsDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfFormFieldActionsDictionary** out) {
1421 if (!isFormFieldActionsDictionary(podofoDoc, podofoObj)) return false;
1422
1423
1424 *out = new SkPdfFormFieldActionsDictionary(&podofoDoc, &podofoObj);
1425 return true;
1426}
1427
1428bool mapDocumentCatalogActionsDictionary(const SkPdfObject& in, SkPdfDocumentCatalogActionsDictionary** out) {
1429 return mapDocumentCatalogActionsDictionary(*in.doc(), *in.podofo(), out);
1430}
1431
1432bool mapDocumentCatalogActionsDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfDocumentCatalogActionsDictionary** out) {
1433 if (!isDocumentCatalogActionsDictionary(podofoDoc, podofoObj)) return false;
1434
1435
1436 *out = new SkPdfDocumentCatalogActionsDictionary(&podofoDoc, &podofoObj);
1437 return true;
1438}
1439
1440bool mapGoToActionDictionary(const SkPdfObject& in, SkPdfGoToActionDictionary** out) {
1441 return mapGoToActionDictionary(*in.doc(), *in.podofo(), out);
1442}
1443
1444bool mapGoToActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfGoToActionDictionary** out) {
1445 if (!isGoToActionDictionary(podofoDoc, podofoObj)) return false;
1446
1447
1448 *out = new SkPdfGoToActionDictionary(&podofoDoc, &podofoObj);
1449 return true;
1450}
1451
1452bool mapRemoteGoToActionDictionary(const SkPdfObject& in, SkPdfRemoteGoToActionDictionary** out) {
1453 return mapRemoteGoToActionDictionary(*in.doc(), *in.podofo(), out);
1454}
1455
1456bool mapRemoteGoToActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfRemoteGoToActionDictionary** out) {
1457 if (!isRemoteGoToActionDictionary(podofoDoc, podofoObj)) return false;
1458
1459
1460 *out = new SkPdfRemoteGoToActionDictionary(&podofoDoc, &podofoObj);
1461 return true;
1462}
1463
1464bool mapLaunchActionDictionary(const SkPdfObject& in, SkPdfLaunchActionDictionary** out) {
1465 return mapLaunchActionDictionary(*in.doc(), *in.podofo(), out);
1466}
1467
1468bool mapLaunchActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfLaunchActionDictionary** out) {
1469 if (!isLaunchActionDictionary(podofoDoc, podofoObj)) return false;
1470
1471
1472 *out = new SkPdfLaunchActionDictionary(&podofoDoc, &podofoObj);
1473 return true;
1474}
1475
1476bool mapWindowsLaunchActionDictionary(const SkPdfObject& in, SkPdfWindowsLaunchActionDictionary** out) {
1477 return mapWindowsLaunchActionDictionary(*in.doc(), *in.podofo(), out);
1478}
1479
1480bool mapWindowsLaunchActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfWindowsLaunchActionDictionary** out) {
1481 if (!isWindowsLaunchActionDictionary(podofoDoc, podofoObj)) return false;
1482
1483
1484 *out = new SkPdfWindowsLaunchActionDictionary(&podofoDoc, &podofoObj);
1485 return true;
1486}
1487
1488bool mapThreadActionDictionary(const SkPdfObject& in, SkPdfThreadActionDictionary** out) {
1489 return mapThreadActionDictionary(*in.doc(), *in.podofo(), out);
1490}
1491
1492bool mapThreadActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfThreadActionDictionary** out) {
1493 if (!isThreadActionDictionary(podofoDoc, podofoObj)) return false;
1494
1495
1496 *out = new SkPdfThreadActionDictionary(&podofoDoc, &podofoObj);
1497 return true;
1498}
1499
1500bool mapURIActionDictionary(const SkPdfObject& in, SkPdfURIActionDictionary** out) {
1501 return mapURIActionDictionary(*in.doc(), *in.podofo(), out);
1502}
1503
1504bool mapURIActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfURIActionDictionary** out) {
1505 if (!isURIActionDictionary(podofoDoc, podofoObj)) return false;
1506
1507
1508 *out = new SkPdfURIActionDictionary(&podofoDoc, &podofoObj);
1509 return true;
1510}
1511
1512bool mapURIDictionary(const SkPdfObject& in, SkPdfURIDictionary** out) {
1513 return mapURIDictionary(*in.doc(), *in.podofo(), out);
1514}
1515
1516bool mapURIDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfURIDictionary** out) {
1517 if (!isURIDictionary(podofoDoc, podofoObj)) return false;
1518
1519
1520 *out = new SkPdfURIDictionary(&podofoDoc, &podofoObj);
1521 return true;
1522}
1523
1524bool mapSoundActionDictionary(const SkPdfObject& in, SkPdfSoundActionDictionary** out) {
1525 return mapSoundActionDictionary(*in.doc(), *in.podofo(), out);
1526}
1527
1528bool mapSoundActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfSoundActionDictionary** out) {
1529 if (!isSoundActionDictionary(podofoDoc, podofoObj)) return false;
1530
1531
1532 *out = new SkPdfSoundActionDictionary(&podofoDoc, &podofoObj);
1533 return true;
1534}
1535
1536bool mapMovieActionDictionary(const SkPdfObject& in, SkPdfMovieActionDictionary** out) {
1537 return mapMovieActionDictionary(*in.doc(), *in.podofo(), out);
1538}
1539
1540bool mapMovieActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfMovieActionDictionary** out) {
1541 if (!isMovieActionDictionary(podofoDoc, podofoObj)) return false;
1542
1543
1544 *out = new SkPdfMovieActionDictionary(&podofoDoc, &podofoObj);
1545 return true;
1546}
1547
1548bool mapHideActionDictionary(const SkPdfObject& in, SkPdfHideActionDictionary** out) {
1549 return mapHideActionDictionary(*in.doc(), *in.podofo(), out);
1550}
1551
1552bool mapHideActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfHideActionDictionary** out) {
1553 if (!isHideActionDictionary(podofoDoc, podofoObj)) return false;
1554
1555
1556 *out = new SkPdfHideActionDictionary(&podofoDoc, &podofoObj);
1557 return true;
1558}
1559
1560bool mapNamedActionsDictionary(const SkPdfObject& in, SkPdfNamedActionsDictionary** out) {
1561 return mapNamedActionsDictionary(*in.doc(), *in.podofo(), out);
1562}
1563
1564bool mapNamedActionsDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfNamedActionsDictionary** out) {
1565 if (!isNamedActionsDictionary(podofoDoc, podofoObj)) return false;
1566
1567
1568 *out = new SkPdfNamedActionsDictionary(&podofoDoc, &podofoObj);
1569 return true;
1570}
1571
1572bool mapInteractiveFormDictionary(const SkPdfObject& in, SkPdfInteractiveFormDictionary** out) {
1573 return mapInteractiveFormDictionary(*in.doc(), *in.podofo(), out);
1574}
1575
1576bool mapInteractiveFormDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfInteractiveFormDictionary** out) {
1577 if (!isInteractiveFormDictionary(podofoDoc, podofoObj)) return false;
1578
1579
1580 *out = new SkPdfInteractiveFormDictionary(&podofoDoc, &podofoObj);
1581 return true;
1582}
1583
1584bool mapFieldDictionary(const SkPdfObject& in, SkPdfFieldDictionary** out) {
1585 return mapFieldDictionary(*in.doc(), *in.podofo(), out);
1586}
1587
1588bool mapFieldDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfFieldDictionary** out) {
1589 if (!isFieldDictionary(podofoDoc, podofoObj)) return false;
1590
1591
1592 *out = new SkPdfFieldDictionary(&podofoDoc, &podofoObj);
1593 return true;
1594}
1595
1596bool mapVariableTextFieldDictionary(const SkPdfObject& in, SkPdfVariableTextFieldDictionary** out) {
1597 return mapVariableTextFieldDictionary(*in.doc(), *in.podofo(), out);
1598}
1599
1600bool mapVariableTextFieldDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfVariableTextFieldDictionary** out) {
1601 if (!isVariableTextFieldDictionary(podofoDoc, podofoObj)) return false;
1602
1603
1604 *out = new SkPdfVariableTextFieldDictionary(&podofoDoc, &podofoObj);
1605 return true;
1606}
1607
1608bool mapAppearanceCharacteristicsDictionary(const SkPdfObject& in, SkPdfAppearanceCharacteristicsDictionary** out) {
1609 return mapAppearanceCharacteristicsDictionary(*in.doc(), *in.podofo(), out);
1610}
1611
1612bool mapAppearanceCharacteristicsDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfAppearanceCharacteristicsDictionary** out) {
1613 if (!isAppearanceCharacteristicsDictionary(podofoDoc, podofoObj)) return false;
1614
1615
1616 *out = new SkPdfAppearanceCharacteristicsDictionary(&podofoDoc, &podofoObj);
1617 return true;
1618}
1619
1620bool mapCheckboxFieldDictionary(const SkPdfObject& in, SkPdfCheckboxFieldDictionary** out) {
1621 return mapCheckboxFieldDictionary(*in.doc(), *in.podofo(), out);
1622}
1623
1624bool mapCheckboxFieldDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfCheckboxFieldDictionary** out) {
1625 if (!isCheckboxFieldDictionary(podofoDoc, podofoObj)) return false;
1626
1627
1628 *out = new SkPdfCheckboxFieldDictionary(&podofoDoc, &podofoObj);
1629 return true;
1630}
1631
1632bool mapRadioButtonFieldDictionary(const SkPdfObject& in, SkPdfRadioButtonFieldDictionary** out) {
1633 return mapRadioButtonFieldDictionary(*in.doc(), *in.podofo(), out);
1634}
1635
1636bool mapRadioButtonFieldDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfRadioButtonFieldDictionary** out) {
1637 if (!isRadioButtonFieldDictionary(podofoDoc, podofoObj)) return false;
1638
1639
1640 *out = new SkPdfRadioButtonFieldDictionary(&podofoDoc, &podofoObj);
1641 return true;
1642}
1643
1644bool mapTextFieldDictionary(const SkPdfObject& in, SkPdfTextFieldDictionary** out) {
1645 return mapTextFieldDictionary(*in.doc(), *in.podofo(), out);
1646}
1647
1648bool mapTextFieldDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfTextFieldDictionary** out) {
1649 if (!isTextFieldDictionary(podofoDoc, podofoObj)) return false;
1650
1651
1652 *out = new SkPdfTextFieldDictionary(&podofoDoc, &podofoObj);
1653 return true;
1654}
1655
1656bool mapChoiceFieldDictionary(const SkPdfObject& in, SkPdfChoiceFieldDictionary** out) {
1657 return mapChoiceFieldDictionary(*in.doc(), *in.podofo(), out);
1658}
1659
1660bool mapChoiceFieldDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfChoiceFieldDictionary** out) {
1661 if (!isChoiceFieldDictionary(podofoDoc, podofoObj)) return false;
1662
1663
1664 *out = new SkPdfChoiceFieldDictionary(&podofoDoc, &podofoObj);
1665 return true;
1666}
1667
1668bool mapSignatureDictionary(const SkPdfObject& in, SkPdfSignatureDictionary** out) {
1669 return mapSignatureDictionary(*in.doc(), *in.podofo(), out);
1670}
1671
1672bool mapSignatureDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfSignatureDictionary** out) {
1673 if (!isSignatureDictionary(podofoDoc, podofoObj)) return false;
1674
1675
1676 *out = new SkPdfSignatureDictionary(&podofoDoc, &podofoObj);
1677 return true;
1678}
1679
1680bool mapSubmitFormActionDictionary(const SkPdfObject& in, SkPdfSubmitFormActionDictionary** out) {
1681 return mapSubmitFormActionDictionary(*in.doc(), *in.podofo(), out);
1682}
1683
1684bool mapSubmitFormActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfSubmitFormActionDictionary** out) {
1685 if (!isSubmitFormActionDictionary(podofoDoc, podofoObj)) return false;
1686
1687
1688 *out = new SkPdfSubmitFormActionDictionary(&podofoDoc, &podofoObj);
1689 return true;
1690}
1691
1692bool mapResetFormActionDictionary(const SkPdfObject& in, SkPdfResetFormActionDictionary** out) {
1693 return mapResetFormActionDictionary(*in.doc(), *in.podofo(), out);
1694}
1695
1696bool mapResetFormActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfResetFormActionDictionary** out) {
1697 if (!isResetFormActionDictionary(podofoDoc, podofoObj)) return false;
1698
1699
1700 *out = new SkPdfResetFormActionDictionary(&podofoDoc, &podofoObj);
1701 return true;
1702}
1703
1704bool mapImportDataActionDictionary(const SkPdfObject& in, SkPdfImportDataActionDictionary** out) {
1705 return mapImportDataActionDictionary(*in.doc(), *in.podofo(), out);
1706}
1707
1708bool mapImportDataActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfImportDataActionDictionary** out) {
1709 if (!isImportDataActionDictionary(podofoDoc, podofoObj)) return false;
1710
1711
1712 *out = new SkPdfImportDataActionDictionary(&podofoDoc, &podofoObj);
1713 return true;
1714}
1715
1716bool mapJavascriptActionDictionary(const SkPdfObject& in, SkPdfJavascriptActionDictionary** out) {
1717 return mapJavascriptActionDictionary(*in.doc(), *in.podofo(), out);
1718}
1719
1720bool mapJavascriptActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfJavascriptActionDictionary** out) {
1721 if (!isJavascriptActionDictionary(podofoDoc, podofoObj)) return false;
1722
1723
1724 *out = new SkPdfJavascriptActionDictionary(&podofoDoc, &podofoObj);
1725 return true;
1726}
1727
1728bool mapFDFTrailerDictionary(const SkPdfObject& in, SkPdfFDFTrailerDictionary** out) {
1729 return mapFDFTrailerDictionary(*in.doc(), *in.podofo(), out);
1730}
1731
1732bool mapFDFTrailerDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfFDFTrailerDictionary** out) {
1733 if (!isFDFTrailerDictionary(podofoDoc, podofoObj)) return false;
1734
1735
1736 *out = new SkPdfFDFTrailerDictionary(&podofoDoc, &podofoObj);
1737 return true;
1738}
1739
1740bool mapFDFCatalogDictionary(const SkPdfObject& in, SkPdfFDFCatalogDictionary** out) {
1741 return mapFDFCatalogDictionary(*in.doc(), *in.podofo(), out);
1742}
1743
1744bool mapFDFCatalogDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfFDFCatalogDictionary** out) {
1745 if (!isFDFCatalogDictionary(podofoDoc, podofoObj)) return false;
1746
1747
1748 *out = new SkPdfFDFCatalogDictionary(&podofoDoc, &podofoObj);
1749 return true;
1750}
1751
1752bool mapFDFDictionary(const SkPdfObject& in, SkPdfFDFDictionary** out) {
1753 return mapFDFDictionary(*in.doc(), *in.podofo(), out);
1754}
1755
1756bool mapFDFDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfFDFDictionary** out) {
1757 if (!isFDFDictionary(podofoDoc, podofoObj)) return false;
1758
1759
1760 *out = new SkPdfFDFDictionary(&podofoDoc, &podofoObj);
1761 return true;
1762}
1763
1764bool mapEncryptedEmbeddedFileStreamDictionary(const SkPdfObject& in, SkPdfEncryptedEmbeddedFileStreamDictionary** out) {
1765 return mapEncryptedEmbeddedFileStreamDictionary(*in.doc(), *in.podofo(), out);
1766}
1767
1768bool mapEncryptedEmbeddedFileStreamDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfEncryptedEmbeddedFileStreamDictionary** out) {
1769 if (!isEncryptedEmbeddedFileStreamDictionary(podofoDoc, podofoObj)) return false;
1770
1771
1772 *out = new SkPdfEncryptedEmbeddedFileStreamDictionary(&podofoDoc, &podofoObj);
1773 return true;
1774}
1775
1776bool mapJavascriptDictionary(const SkPdfObject& in, SkPdfJavascriptDictionary** out) {
1777 return mapJavascriptDictionary(*in.doc(), *in.podofo(), out);
1778}
1779
1780bool mapJavascriptDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfJavascriptDictionary** out) {
1781 if (!isJavascriptDictionary(podofoDoc, podofoObj)) return false;
1782
1783
1784 *out = new SkPdfJavascriptDictionary(&podofoDoc, &podofoObj);
1785 return true;
1786}
1787
1788bool mapFDFFieldDictionary(const SkPdfObject& in, SkPdfFDFFieldDictionary** out) {
1789 return mapFDFFieldDictionary(*in.doc(), *in.podofo(), out);
1790}
1791
1792bool mapFDFFieldDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfFDFFieldDictionary** out) {
1793 if (!isFDFFieldDictionary(podofoDoc, podofoObj)) return false;
1794
1795
1796 *out = new SkPdfFDFFieldDictionary(&podofoDoc, &podofoObj);
1797 return true;
1798}
1799
1800bool mapIconFitDictionary(const SkPdfObject& in, SkPdfIconFitDictionary** out) {
1801 return mapIconFitDictionary(*in.doc(), *in.podofo(), out);
1802}
1803
1804bool mapIconFitDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfIconFitDictionary** out) {
1805 if (!isIconFitDictionary(podofoDoc, podofoObj)) return false;
1806
1807
1808 *out = new SkPdfIconFitDictionary(&podofoDoc, &podofoObj);
1809 return true;
1810}
1811
1812bool mapFDFPageDictionary(const SkPdfObject& in, SkPdfFDFPageDictionary** out) {
1813 return mapFDFPageDictionary(*in.doc(), *in.podofo(), out);
1814}
1815
1816bool mapFDFPageDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfFDFPageDictionary** out) {
1817 if (!isFDFPageDictionary(podofoDoc, podofoObj)) return false;
1818
1819
1820 *out = new SkPdfFDFPageDictionary(&podofoDoc, &podofoObj);
1821 return true;
1822}
1823
1824bool mapFDFTemplateDictionary(const SkPdfObject& in, SkPdfFDFTemplateDictionary** out) {
1825 return mapFDFTemplateDictionary(*in.doc(), *in.podofo(), out);
1826}
1827
1828bool mapFDFTemplateDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfFDFTemplateDictionary** out) {
1829 if (!isFDFTemplateDictionary(podofoDoc, podofoObj)) return false;
1830
1831
1832 *out = new SkPdfFDFTemplateDictionary(&podofoDoc, &podofoObj);
1833 return true;
1834}
1835
1836bool mapFDFNamedPageReferenceDictionary(const SkPdfObject& in, SkPdfFDFNamedPageReferenceDictionary** out) {
1837 return mapFDFNamedPageReferenceDictionary(*in.doc(), *in.podofo(), out);
1838}
1839
1840bool mapFDFNamedPageReferenceDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfFDFNamedPageReferenceDictionary** out) {
1841 if (!isFDFNamedPageReferenceDictionary(podofoDoc, podofoObj)) return false;
1842
1843
1844 *out = new SkPdfFDFNamedPageReferenceDictionary(&podofoDoc, &podofoObj);
1845 return true;
1846}
1847
1848bool mapFDFFileAnnotationDictionary(const SkPdfObject& in, SkPdfFDFFileAnnotationDictionary** out) {
1849 return mapFDFFileAnnotationDictionary(*in.doc(), *in.podofo(), out);
1850}
1851
1852bool mapFDFFileAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfFDFFileAnnotationDictionary** out) {
1853 if (!isFDFFileAnnotationDictionary(podofoDoc, podofoObj)) return false;
1854
1855
1856 *out = new SkPdfFDFFileAnnotationDictionary(&podofoDoc, &podofoObj);
1857 return true;
1858}
1859
1860bool mapSoundObjectDictionary(const SkPdfObject& in, SkPdfSoundObjectDictionary** out) {
1861 return mapSoundObjectDictionary(*in.doc(), *in.podofo(), out);
1862}
1863
1864bool mapSoundObjectDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfSoundObjectDictionary** out) {
1865 if (!isSoundObjectDictionary(podofoDoc, podofoObj)) return false;
1866
1867
1868 *out = new SkPdfSoundObjectDictionary(&podofoDoc, &podofoObj);
1869 return true;
1870}
1871
1872bool mapMovieDictionary(const SkPdfObject& in, SkPdfMovieDictionary** out) {
1873 return mapMovieDictionary(*in.doc(), *in.podofo(), out);
1874}
1875
1876bool mapMovieDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfMovieDictionary** out) {
1877 if (!isMovieDictionary(podofoDoc, podofoObj)) return false;
1878
1879
1880 *out = new SkPdfMovieDictionary(&podofoDoc, &podofoObj);
1881 return true;
1882}
1883
1884bool mapMovieActivationDictionary(const SkPdfObject& in, SkPdfMovieActivationDictionary** out) {
1885 return mapMovieActivationDictionary(*in.doc(), *in.podofo(), out);
1886}
1887
1888bool mapMovieActivationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfMovieActivationDictionary** out) {
1889 if (!isMovieActivationDictionary(podofoDoc, podofoObj)) return false;
1890
1891
1892 *out = new SkPdfMovieActivationDictionary(&podofoDoc, &podofoObj);
1893 return true;
1894}
1895
1896bool mapDocumentInformationDictionary(const SkPdfObject& in, SkPdfDocumentInformationDictionary** out) {
1897 return mapDocumentInformationDictionary(*in.doc(), *in.podofo(), out);
1898}
1899
1900bool mapDocumentInformationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfDocumentInformationDictionary** out) {
1901 if (!isDocumentInformationDictionary(podofoDoc, podofoObj)) return false;
1902
1903
1904 *out = new SkPdfDocumentInformationDictionary(&podofoDoc, &podofoObj);
1905 return true;
1906}
1907
1908bool mapMetadataStreamDictionary(const SkPdfObject& in, SkPdfMetadataStreamDictionary** out) {
1909 return mapMetadataStreamDictionary(*in.doc(), *in.podofo(), out);
1910}
1911
1912bool mapMetadataStreamDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfMetadataStreamDictionary** out) {
1913 if (!isMetadataStreamDictionary(podofoDoc, podofoObj)) return false;
1914
1915
1916 *out = new SkPdfMetadataStreamDictionary(&podofoDoc, &podofoObj);
1917 return true;
1918}
1919
1920bool mapComponentsWithMetadataDictionary(const SkPdfObject& in, SkPdfComponentsWithMetadataDictionary** out) {
1921 return mapComponentsWithMetadataDictionary(*in.doc(), *in.podofo(), out);
1922}
1923
1924bool mapComponentsWithMetadataDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfComponentsWithMetadataDictionary** out) {
1925 if (!isComponentsWithMetadataDictionary(podofoDoc, podofoObj)) return false;
1926
1927
1928 *out = new SkPdfComponentsWithMetadataDictionary(&podofoDoc, &podofoObj);
1929 return true;
1930}
1931
1932bool mapPagePieceDictionary(const SkPdfObject& in, SkPdfPagePieceDictionary** out) {
1933 return mapPagePieceDictionary(*in.doc(), *in.podofo(), out);
1934}
1935
1936bool mapPagePieceDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfPagePieceDictionary** out) {
1937 if (!isPagePieceDictionary(podofoDoc, podofoObj)) return false;
1938
1939
1940 *out = new SkPdfPagePieceDictionary(&podofoDoc, &podofoObj);
1941 return true;
1942}
1943
1944bool mapApplicationDataDictionary(const SkPdfObject& in, SkPdfApplicationDataDictionary** out) {
1945 return mapApplicationDataDictionary(*in.doc(), *in.podofo(), out);
1946}
1947
1948bool mapApplicationDataDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfApplicationDataDictionary** out) {
1949 if (!isApplicationDataDictionary(podofoDoc, podofoObj)) return false;
1950
1951
1952 *out = new SkPdfApplicationDataDictionary(&podofoDoc, &podofoObj);
1953 return true;
1954}
1955
1956bool mapStructureTreeRootDictionary(const SkPdfObject& in, SkPdfStructureTreeRootDictionary** out) {
1957 return mapStructureTreeRootDictionary(*in.doc(), *in.podofo(), out);
1958}
1959
1960bool mapStructureTreeRootDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfStructureTreeRootDictionary** out) {
1961 if (!isStructureTreeRootDictionary(podofoDoc, podofoObj)) return false;
1962
1963
1964 *out = new SkPdfStructureTreeRootDictionary(&podofoDoc, &podofoObj);
1965 return true;
1966}
1967
1968bool mapStructureElementDictionary(const SkPdfObject& in, SkPdfStructureElementDictionary** out) {
1969 return mapStructureElementDictionary(*in.doc(), *in.podofo(), out);
1970}
1971
1972bool mapStructureElementDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfStructureElementDictionary** out) {
1973 if (!isStructureElementDictionary(podofoDoc, podofoObj)) return false;
1974
1975
1976 *out = new SkPdfStructureElementDictionary(&podofoDoc, &podofoObj);
1977 return true;
1978}
1979
1980bool mapMarkedContentReferenceDictionary(const SkPdfObject& in, SkPdfMarkedContentReferenceDictionary** out) {
1981 return mapMarkedContentReferenceDictionary(*in.doc(), *in.podofo(), out);
1982}
1983
1984bool mapMarkedContentReferenceDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfMarkedContentReferenceDictionary** out) {
1985 if (!isMarkedContentReferenceDictionary(podofoDoc, podofoObj)) return false;
1986
1987
1988 *out = new SkPdfMarkedContentReferenceDictionary(&podofoDoc, &podofoObj);
1989 return true;
1990}
1991
1992bool mapObjectReferenceDictionary(const SkPdfObject& in, SkPdfObjectReferenceDictionary** out) {
1993 return mapObjectReferenceDictionary(*in.doc(), *in.podofo(), out);
1994}
1995
1996bool mapObjectReferenceDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfObjectReferenceDictionary** out) {
1997 if (!isObjectReferenceDictionary(podofoDoc, podofoObj)) return false;
1998
1999
2000 *out = new SkPdfObjectReferenceDictionary(&podofoDoc, &podofoObj);
2001 return true;
2002}
2003
2004bool mapStructureElementAccessDictionary(const SkPdfObject& in, SkPdfStructureElementAccessDictionary** out) {
2005 return mapStructureElementAccessDictionary(*in.doc(), *in.podofo(), out);
2006}
2007
2008bool mapStructureElementAccessDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfStructureElementAccessDictionary** out) {
2009 if (!isStructureElementAccessDictionary(podofoDoc, podofoObj)) return false;
2010
2011
2012 *out = new SkPdfStructureElementAccessDictionary(&podofoDoc, &podofoObj);
2013 return true;
2014}
2015
2016bool mapAttributeObjectDictionary(const SkPdfObject& in, SkPdfAttributeObjectDictionary** out) {
2017 return mapAttributeObjectDictionary(*in.doc(), *in.podofo(), out);
2018}
2019
2020bool mapAttributeObjectDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfAttributeObjectDictionary** out) {
2021 if (!isAttributeObjectDictionary(podofoDoc, podofoObj)) return false;
2022
2023
2024 *out = new SkPdfAttributeObjectDictionary(&podofoDoc, &podofoObj);
2025 return true;
2026}
2027
2028bool mapMarkInformationDictionary(const SkPdfObject& in, SkPdfMarkInformationDictionary** out) {
2029 return mapMarkInformationDictionary(*in.doc(), *in.podofo(), out);
2030}
2031
2032bool mapMarkInformationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfMarkInformationDictionary** out) {
2033 if (!isMarkInformationDictionary(podofoDoc, podofoObj)) return false;
2034
2035
2036 *out = new SkPdfMarkInformationDictionary(&podofoDoc, &podofoObj);
2037 return true;
2038}
2039
2040bool mapArtifactsDictionary(const SkPdfObject& in, SkPdfArtifactsDictionary** out) {
2041 return mapArtifactsDictionary(*in.doc(), *in.podofo(), out);
2042}
2043
2044bool mapArtifactsDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfArtifactsDictionary** out) {
2045 if (!isArtifactsDictionary(podofoDoc, podofoObj)) return false;
2046
2047
2048 *out = new SkPdfArtifactsDictionary(&podofoDoc, &podofoObj);
2049 return true;
2050}
2051
2052bool mapStandardStructureDictionary(const SkPdfObject& in, SkPdfStandardStructureDictionary** out) {
2053 return mapStandardStructureDictionary(*in.doc(), *in.podofo(), out);
2054}
2055
2056bool mapStandardStructureDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfStandardStructureDictionary** out) {
2057 if (!isStandardStructureDictionary(podofoDoc, podofoObj)) return false;
2058
2059
2060 *out = new SkPdfStandardStructureDictionary(&podofoDoc, &podofoObj);
2061 return true;
2062}
2063
2064bool mapBlockLevelStructureElementsDictionary(const SkPdfObject& in, SkPdfBlockLevelStructureElementsDictionary** out) {
2065 return mapBlockLevelStructureElementsDictionary(*in.doc(), *in.podofo(), out);
2066}
2067
2068bool mapBlockLevelStructureElementsDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfBlockLevelStructureElementsDictionary** out) {
2069 if (!isBlockLevelStructureElementsDictionary(podofoDoc, podofoObj)) return false;
2070
2071
2072 *out = new SkPdfBlockLevelStructureElementsDictionary(&podofoDoc, &podofoObj);
2073 return true;
2074}
2075
2076bool mapInlineLevelStructureElementsDictionary(const SkPdfObject& in, SkPdfInlineLevelStructureElementsDictionary** out) {
2077 return mapInlineLevelStructureElementsDictionary(*in.doc(), *in.podofo(), out);
2078}
2079
2080bool mapInlineLevelStructureElementsDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfInlineLevelStructureElementsDictionary** out) {
2081 if (!isInlineLevelStructureElementsDictionary(podofoDoc, podofoObj)) return false;
2082
2083
2084 *out = new SkPdfInlineLevelStructureElementsDictionary(&podofoDoc, &podofoObj);
2085 return true;
2086}
2087
2088bool mapListAttributeDictionary(const SkPdfObject& in, SkPdfListAttributeDictionary** out) {
2089 return mapListAttributeDictionary(*in.doc(), *in.podofo(), out);
2090}
2091
2092bool mapListAttributeDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfListAttributeDictionary** out) {
2093 if (!isListAttributeDictionary(podofoDoc, podofoObj)) return false;
2094
2095
2096 *out = new SkPdfListAttributeDictionary(&podofoDoc, &podofoObj);
2097 return true;
2098}
2099
2100bool mapTableAttributesDictionary(const SkPdfObject& in, SkPdfTableAttributesDictionary** out) {
2101 return mapTableAttributesDictionary(*in.doc(), *in.podofo(), out);
2102}
2103
2104bool mapTableAttributesDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfTableAttributesDictionary** out) {
2105 if (!isTableAttributesDictionary(podofoDoc, podofoObj)) return false;
2106
2107
2108 *out = new SkPdfTableAttributesDictionary(&podofoDoc, &podofoObj);
2109 return true;
2110}
2111
2112bool mapWebCaptureInformationDictionary(const SkPdfObject& in, SkPdfWebCaptureInformationDictionary** out) {
2113 return mapWebCaptureInformationDictionary(*in.doc(), *in.podofo(), out);
2114}
2115
2116bool mapWebCaptureInformationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfWebCaptureInformationDictionary** out) {
2117 if (!isWebCaptureInformationDictionary(podofoDoc, podofoObj)) return false;
2118
2119
2120 *out = new SkPdfWebCaptureInformationDictionary(&podofoDoc, &podofoObj);
2121 return true;
2122}
2123
2124bool mapWebCaptureDictionary(const SkPdfObject& in, SkPdfWebCaptureDictionary** out) {
2125 return mapWebCaptureDictionary(*in.doc(), *in.podofo(), out);
2126}
2127
2128bool mapWebCaptureDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfWebCaptureDictionary** out) {
2129 if (!isWebCaptureDictionary(podofoDoc, podofoObj)) return false;
2130
2131
2132 *out = new SkPdfWebCaptureDictionary(&podofoDoc, &podofoObj);
2133 return true;
2134}
2135
2136bool mapWebCapturePageSetDictionary(const SkPdfObject& in, SkPdfWebCapturePageSetDictionary** out) {
2137 return mapWebCapturePageSetDictionary(*in.doc(), *in.podofo(), out);
2138}
2139
2140bool mapWebCapturePageSetDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfWebCapturePageSetDictionary** out) {
2141 if (!isWebCapturePageSetDictionary(podofoDoc, podofoObj)) return false;
2142
2143
2144 *out = new SkPdfWebCapturePageSetDictionary(&podofoDoc, &podofoObj);
2145 return true;
2146}
2147
2148bool mapWebCaptureImageSetDictionary(const SkPdfObject& in, SkPdfWebCaptureImageSetDictionary** out) {
2149 return mapWebCaptureImageSetDictionary(*in.doc(), *in.podofo(), out);
2150}
2151
2152bool mapWebCaptureImageSetDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfWebCaptureImageSetDictionary** out) {
2153 if (!isWebCaptureImageSetDictionary(podofoDoc, podofoObj)) return false;
2154
2155
2156 *out = new SkPdfWebCaptureImageSetDictionary(&podofoDoc, &podofoObj);
2157 return true;
2158}
2159
2160bool mapSourceInformationDictionary(const SkPdfObject& in, SkPdfSourceInformationDictionary** out) {
2161 return mapSourceInformationDictionary(*in.doc(), *in.podofo(), out);
2162}
2163
2164bool mapSourceInformationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfSourceInformationDictionary** out) {
2165 if (!isSourceInformationDictionary(podofoDoc, podofoObj)) return false;
2166
2167
2168 *out = new SkPdfSourceInformationDictionary(&podofoDoc, &podofoObj);
2169 return true;
2170}
2171
2172bool mapURLAliasDictionary(const SkPdfObject& in, SkPdfURLAliasDictionary** out) {
2173 return mapURLAliasDictionary(*in.doc(), *in.podofo(), out);
2174}
2175
2176bool mapURLAliasDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfURLAliasDictionary** out) {
2177 if (!isURLAliasDictionary(podofoDoc, podofoObj)) return false;
2178
2179
2180 *out = new SkPdfURLAliasDictionary(&podofoDoc, &podofoObj);
2181 return true;
2182}
2183
2184bool mapWebCaptureCommandDictionary(const SkPdfObject& in, SkPdfWebCaptureCommandDictionary** out) {
2185 return mapWebCaptureCommandDictionary(*in.doc(), *in.podofo(), out);
2186}
2187
2188bool mapWebCaptureCommandDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfWebCaptureCommandDictionary** out) {
2189 if (!isWebCaptureCommandDictionary(podofoDoc, podofoObj)) return false;
2190
2191
2192 *out = new SkPdfWebCaptureCommandDictionary(&podofoDoc, &podofoObj);
2193 return true;
2194}
2195
2196bool mapWebCaptureCommandSettingsDictionary(const SkPdfObject& in, SkPdfWebCaptureCommandSettingsDictionary** out) {
2197 return mapWebCaptureCommandSettingsDictionary(*in.doc(), *in.podofo(), out);
2198}
2199
2200bool mapWebCaptureCommandSettingsDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfWebCaptureCommandSettingsDictionary** out) {
2201 if (!isWebCaptureCommandSettingsDictionary(podofoDoc, podofoObj)) return false;
2202
2203
2204 *out = new SkPdfWebCaptureCommandSettingsDictionary(&podofoDoc, &podofoObj);
2205 return true;
2206}
2207
2208bool mapBoxColorInformationDictionary(const SkPdfObject& in, SkPdfBoxColorInformationDictionary** out) {
2209 return mapBoxColorInformationDictionary(*in.doc(), *in.podofo(), out);
2210}
2211
2212bool mapBoxColorInformationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfBoxColorInformationDictionary** out) {
2213 if (!isBoxColorInformationDictionary(podofoDoc, podofoObj)) return false;
2214
2215
2216 *out = new SkPdfBoxColorInformationDictionary(&podofoDoc, &podofoObj);
2217 return true;
2218}
2219
2220bool mapBoxStyleDictionary(const SkPdfObject& in, SkPdfBoxStyleDictionary** out) {
2221 return mapBoxStyleDictionary(*in.doc(), *in.podofo(), out);
2222}
2223
2224bool mapBoxStyleDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfBoxStyleDictionary** out) {
2225 if (!isBoxStyleDictionary(podofoDoc, podofoObj)) return false;
2226
2227
2228 *out = new SkPdfBoxStyleDictionary(&podofoDoc, &podofoObj);
2229 return true;
2230}
2231
2232bool mapPrinterMarkAnnotationDictionary(const SkPdfObject& in, SkPdfPrinterMarkAnnotationDictionary** out) {
2233 return mapPrinterMarkAnnotationDictionary(*in.doc(), *in.podofo(), out);
2234}
2235
2236bool mapPrinterMarkAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfPrinterMarkAnnotationDictionary** out) {
2237 if (!isPrinterMarkAnnotationDictionary(podofoDoc, podofoObj)) return false;
2238
2239
2240 *out = new SkPdfPrinterMarkAnnotationDictionary(&podofoDoc, &podofoObj);
2241 return true;
2242}
2243
2244bool mapPrinterMarkFormDictionary(const SkPdfObject& in, SkPdfPrinterMarkFormDictionary** out) {
2245 return mapPrinterMarkFormDictionary(*in.doc(), *in.podofo(), out);
2246}
2247
2248bool mapPrinterMarkFormDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfPrinterMarkFormDictionary** out) {
2249 if (!isPrinterMarkFormDictionary(podofoDoc, podofoObj)) return false;
2250
2251
2252 *out = new SkPdfPrinterMarkFormDictionary(&podofoDoc, &podofoObj);
2253 return true;
2254}
2255
2256bool mapSeparationDictionary(const SkPdfObject& in, SkPdfSeparationDictionary** out) {
2257 return mapSeparationDictionary(*in.doc(), *in.podofo(), out);
2258}
2259
2260bool mapSeparationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfSeparationDictionary** out) {
2261 if (!isSeparationDictionary(podofoDoc, podofoObj)) return false;
2262
2263
2264 *out = new SkPdfSeparationDictionary(&podofoDoc, &podofoObj);
2265 return true;
2266}
2267
2268bool mapPDF_XOutputIntentDictionary(const SkPdfObject& in, SkPdfPDF_XOutputIntentDictionary** out) {
2269 return mapPDF_XOutputIntentDictionary(*in.doc(), *in.podofo(), out);
2270}
2271
2272bool mapPDF_XOutputIntentDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfPDF_XOutputIntentDictionary** out) {
2273 if (!isPDF_XOutputIntentDictionary(podofoDoc, podofoObj)) return false;
2274
2275
2276 *out = new SkPdfPDF_XOutputIntentDictionary(&podofoDoc, &podofoObj);
2277 return true;
2278}
2279
2280bool mapTrapNetworkAnnotationDictionary(const SkPdfObject& in, SkPdfTrapNetworkAnnotationDictionary** out) {
2281 return mapTrapNetworkAnnotationDictionary(*in.doc(), *in.podofo(), out);
2282}
2283
2284bool mapTrapNetworkAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfTrapNetworkAnnotationDictionary** out) {
2285 if (!isTrapNetworkAnnotationDictionary(podofoDoc, podofoObj)) return false;
2286
2287
2288 *out = new SkPdfTrapNetworkAnnotationDictionary(&podofoDoc, &podofoObj);
2289 return true;
2290}
2291
2292bool mapTrapNetworkAppearanceStreamDictionary(const SkPdfObject& in, SkPdfTrapNetworkAppearanceStreamDictionary** out) {
2293 return mapTrapNetworkAppearanceStreamDictionary(*in.doc(), *in.podofo(), out);
2294}
2295
2296bool mapTrapNetworkAppearanceStreamDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfTrapNetworkAppearanceStreamDictionary** out) {
2297 if (!isTrapNetworkAppearanceStreamDictionary(podofoDoc, podofoObj)) return false;
2298
2299
2300 *out = new SkPdfTrapNetworkAppearanceStreamDictionary(&podofoDoc, &podofoObj);
2301 return true;
2302}
2303
2304bool mapOpiVersionDictionary(const SkPdfObject& in, SkPdfOpiVersionDictionary** out) {
2305 return mapOpiVersionDictionary(*in.doc(), *in.podofo(), out);
2306}
2307
2308bool mapOpiVersionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfOpiVersionDictionary** out) {
2309 if (!isOpiVersionDictionary(podofoDoc, podofoObj)) return false;
2310
2311
2312 *out = new SkPdfOpiVersionDictionary(&podofoDoc, &podofoObj);
2313 return true;
2314}
2315
2316bool mapMultiMasterFontDictionary(const SkPdfObject& in, SkPdfMultiMasterFontDictionary** out) {
2317 return mapMultiMasterFontDictionary(*in.doc(), *in.podofo(), out);
2318}
2319
2320bool mapMultiMasterFontDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfMultiMasterFontDictionary** out) {
2321 if (!isMultiMasterFontDictionary(podofoDoc, podofoObj)) return false;
2322
2323
2324 *out = new SkPdfMultiMasterFontDictionary(&podofoDoc, &podofoObj);
2325 return true;
2326}
2327
2328bool isObject(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2329 return true;
2330}
2331
2332bool ObjectFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfObject** data) {
2333 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2334 if (value == NULL) { return false; }
2335 if (data == NULL) { return true; }
2336 return mapObject(*pdfDoc, *value, (SkPdfObject**)data);
2337}
2338
2339bool ObjectFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfObject** data) {
2340 if (ObjectFromDictionary(pdfDoc, dict, key, data)) return true;
2341 if (abr == NULL || *abr == '\0') return false;
2342 return ObjectFromDictionary(pdfDoc, dict, abr, data);
2343}
2344
2345bool isNull(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2346 return podofoObj.GetDataType() == ePdfDataType_Null;
2347}
2348
2349bool NullFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfNull** data) {
2350 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2351 if (value == NULL) { return false; }
2352 if (data == NULL) { return true; }
2353 return mapNull(*pdfDoc, *value, (SkPdfNull**)data);
2354}
2355
2356bool NullFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfNull** data) {
2357 if (NullFromDictionary(pdfDoc, dict, key, data)) return true;
2358 if (abr == NULL || *abr == '\0') return false;
2359 return NullFromDictionary(pdfDoc, dict, abr, data);
2360}
2361
2362bool isBoolean(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2363 return podofoObj.GetDataType() == ePdfDataType_Bool;
2364}
2365
2366bool BooleanFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfBoolean** data) {
2367 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2368 if (value == NULL) { return false; }
2369 if (data == NULL) { return true; }
2370 return mapBoolean(*pdfDoc, *value, (SkPdfBoolean**)data);
2371}
2372
2373bool BooleanFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfBoolean** data) {
2374 if (BooleanFromDictionary(pdfDoc, dict, key, data)) return true;
2375 if (abr == NULL || *abr == '\0') return false;
2376 return BooleanFromDictionary(pdfDoc, dict, abr, data);
2377}
2378
2379bool isInteger(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2380 return podofoObj.GetDataType() == ePdfDataType_Number || podofoObj.GetDataType() == ePdfDataType_Real;
2381}
2382
2383bool IntegerFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfInteger** data) {
2384 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2385 if (value == NULL) { return false; }
2386 if (data == NULL) { return true; }
2387 return mapInteger(*pdfDoc, *value, (SkPdfInteger**)data);
2388}
2389
2390bool IntegerFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfInteger** data) {
2391 if (IntegerFromDictionary(pdfDoc, dict, key, data)) return true;
2392 if (abr == NULL || *abr == '\0') return false;
2393 return IntegerFromDictionary(pdfDoc, dict, abr, data);
2394}
2395
2396bool isNumber(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2397 return podofoObj.GetDataType() == ePdfDataType_Number || podofoObj.GetDataType() == ePdfDataType_Real;
2398}
2399
2400bool NumberFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfNumber** data) {
2401 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2402 if (value == NULL) { return false; }
2403 if (data == NULL) { return true; }
2404 return mapNumber(*pdfDoc, *value, (SkPdfNumber**)data);
2405}
2406
2407bool NumberFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfNumber** data) {
2408 if (NumberFromDictionary(pdfDoc, dict, key, data)) return true;
2409 if (abr == NULL || *abr == '\0') return false;
2410 return NumberFromDictionary(pdfDoc, dict, abr, data);
2411}
2412
2413bool isName(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2414 return podofoObj.GetDataType() == ePdfDataType_Name;
2415}
2416
2417bool NameFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfName** data) {
2418 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2419 if (value == NULL) { return false; }
2420 if (data == NULL) { return true; }
2421 return mapName(*pdfDoc, *value, (SkPdfName**)data);
2422}
2423
2424bool NameFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfName** data) {
2425 if (NameFromDictionary(pdfDoc, dict, key, data)) return true;
2426 if (abr == NULL || *abr == '\0') return false;
2427 return NameFromDictionary(pdfDoc, dict, abr, data);
2428}
2429
2430bool isReference(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2431 return podofoObj.GetDataType() == ePdfDataType_Reference;
2432}
2433
2434bool ReferenceFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfReference** data) {
2435 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2436 if (value == NULL) { return false; }
2437 if (data == NULL) { return true; }
2438 return mapReference(*pdfDoc, *value, (SkPdfReference**)data);
2439}
2440
2441bool ReferenceFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfReference** data) {
2442 if (ReferenceFromDictionary(pdfDoc, dict, key, data)) return true;
2443 if (abr == NULL || *abr == '\0') return false;
2444 return ReferenceFromDictionary(pdfDoc, dict, abr, data);
2445}
2446
2447bool isArray(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2448 return podofoObj.GetDataType() == ePdfDataType_Array;
2449}
2450
2451bool ArrayFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfArray** data) {
2452 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2453 if (value == NULL) { return false; }
2454 if (data == NULL) { return true; }
2455 return mapArray(*pdfDoc, *value, (SkPdfArray**)data);
2456}
2457
2458bool ArrayFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfArray** data) {
2459 if (ArrayFromDictionary(pdfDoc, dict, key, data)) return true;
2460 if (abr == NULL || *abr == '\0') return false;
2461 return ArrayFromDictionary(pdfDoc, dict, abr, data);
2462}
2463
2464bool isString(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2465 return podofoObj.GetDataType() == ePdfDataType_String || podofoObj.GetDataType() == ePdfDataType_HexString;
2466}
2467
2468bool StringFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfString** data) {
2469 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2470 if (value == NULL) { return false; }
2471 if (data == NULL) { return true; }
2472 return mapString(*pdfDoc, *value, (SkPdfString**)data);
2473}
2474
2475bool StringFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfString** data) {
2476 if (StringFromDictionary(pdfDoc, dict, key, data)) return true;
2477 if (abr == NULL || *abr == '\0') return false;
2478 return StringFromDictionary(pdfDoc, dict, abr, data);
2479}
2480
2481bool isHexString(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2482 return podofoObj.GetDataType() == ePdfDataType_HexString;
2483}
2484
2485bool HexStringFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfHexString** data) {
2486 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2487 if (value == NULL) { return false; }
2488 if (data == NULL) { return true; }
2489 return mapHexString(*pdfDoc, *value, (SkPdfHexString**)data);
2490}
2491
2492bool HexStringFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfHexString** data) {
2493 if (HexStringFromDictionary(pdfDoc, dict, key, data)) return true;
2494 if (abr == NULL || *abr == '\0') return false;
2495 return HexStringFromDictionary(pdfDoc, dict, abr, data);
2496}
2497
2498bool isDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2499 return podofoObj.GetDataType() == ePdfDataType_Dictionary;
2500}
2501
2502bool DictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfDictionary** data) {
2503 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2504 if (value == NULL) { return false; }
2505 if (data == NULL) { return true; }
2506 return mapDictionary(*pdfDoc, *value, (SkPdfDictionary**)data);
2507}
2508
2509bool DictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfDictionary** data) {
2510 if (DictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2511 if (abr == NULL || *abr == '\0') return false;
2512 return DictionaryFromDictionary(pdfDoc, dict, abr, data);
2513}
2514
2515bool isStream(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2516 return true;
2517}
2518
2519bool StreamFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfStream** data) {
2520 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2521 if (value == NULL) { return false; }
2522 if (data == NULL) { return true; }
2523 return mapStream(*pdfDoc, *value, (SkPdfStream**)data);
2524}
2525
2526bool StreamFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfStream** data) {
2527 if (StreamFromDictionary(pdfDoc, dict, key, data)) return true;
2528 if (abr == NULL || *abr == '\0') return false;
2529 return StreamFromDictionary(pdfDoc, dict, abr, data);
2530}
2531
2532bool isXObjectDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2533 return true;
2534}
2535
2536bool XObjectDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfXObjectDictionary** data) {
2537 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2538 if (value == NULL) { return false; }
2539 if (data == NULL) { return true; }
2540 return mapXObjectDictionary(*pdfDoc, *value, (SkPdfXObjectDictionary**)data);
2541}
2542
2543bool XObjectDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfXObjectDictionary** data) {
2544 if (XObjectDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2545 if (abr == NULL || *abr == '\0') return false;
2546 return XObjectDictionaryFromDictionary(pdfDoc, dict, abr, data);
2547}
2548
2549bool isFontDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2550 return true;
2551}
2552
2553bool FontDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfFontDictionary** data) {
2554 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2555 if (value == NULL) { return false; }
2556 if (data == NULL) { return true; }
2557 return mapFontDictionary(*pdfDoc, *value, (SkPdfFontDictionary**)data);
2558}
2559
2560bool FontDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfFontDictionary** data) {
2561 if (FontDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2562 if (abr == NULL || *abr == '\0') return false;
2563 return FontDictionaryFromDictionary(pdfDoc, dict, abr, data);
2564}
2565
2566bool isTrueTypeFontDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2567 std::string Subtype;
edisonn@google.comab03e682013-06-28 18:51:20 +00002568 if (!podofoObj.IsDictionary()) return false;
edisonn@google.com131d4ee2013-06-26 17:48:12 +00002569 if (!NameFromDictionary(&podofoDoc, podofoObj.GetDictionary(), "Subtype", "", &Subtype)) return false;
2570 if ((Subtype != "TrueType")) return false;
2571
2572 return true;
2573}
2574
2575bool TrueTypeFontDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfTrueTypeFontDictionary** data) {
2576 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2577 if (value == NULL) { return false; }
2578 if (data == NULL) { return true; }
2579 return mapTrueTypeFontDictionary(*pdfDoc, *value, (SkPdfTrueTypeFontDictionary**)data);
2580}
2581
2582bool TrueTypeFontDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfTrueTypeFontDictionary** data) {
2583 if (TrueTypeFontDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2584 if (abr == NULL || *abr == '\0') return false;
2585 return TrueTypeFontDictionaryFromDictionary(pdfDoc, dict, abr, data);
2586}
2587
2588bool isStreamCommonDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2589 return true;
2590}
2591
2592bool StreamCommonDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfStreamCommonDictionary** data) {
2593 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2594 if (value == NULL) { return false; }
2595 if (data == NULL) { return true; }
2596 return mapStreamCommonDictionary(*pdfDoc, *value, (SkPdfStreamCommonDictionary**)data);
2597}
2598
2599bool StreamCommonDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfStreamCommonDictionary** data) {
2600 if (StreamCommonDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2601 if (abr == NULL || *abr == '\0') return false;
2602 return StreamCommonDictionaryFromDictionary(pdfDoc, dict, abr, data);
2603}
2604
2605bool isLzwdecodeAndFlatedecodeFiltersDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2606 return true;
2607}
2608
2609bool LzwdecodeAndFlatedecodeFiltersDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfLzwdecodeAndFlatedecodeFiltersDictionary** data) {
2610 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2611 if (value == NULL) { return false; }
2612 if (data == NULL) { return true; }
2613 return mapLzwdecodeAndFlatedecodeFiltersDictionary(*pdfDoc, *value, (SkPdfLzwdecodeAndFlatedecodeFiltersDictionary**)data);
2614}
2615
2616bool LzwdecodeAndFlatedecodeFiltersDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfLzwdecodeAndFlatedecodeFiltersDictionary** data) {
2617 if (LzwdecodeAndFlatedecodeFiltersDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2618 if (abr == NULL || *abr == '\0') return false;
2619 return LzwdecodeAndFlatedecodeFiltersDictionaryFromDictionary(pdfDoc, dict, abr, data);
2620}
2621
2622bool isCcittfaxdecodeFilterDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2623 return true;
2624}
2625
2626bool CcittfaxdecodeFilterDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfCcittfaxdecodeFilterDictionary** data) {
2627 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2628 if (value == NULL) { return false; }
2629 if (data == NULL) { return true; }
2630 return mapCcittfaxdecodeFilterDictionary(*pdfDoc, *value, (SkPdfCcittfaxdecodeFilterDictionary**)data);
2631}
2632
2633bool CcittfaxdecodeFilterDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfCcittfaxdecodeFilterDictionary** data) {
2634 if (CcittfaxdecodeFilterDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2635 if (abr == NULL || *abr == '\0') return false;
2636 return CcittfaxdecodeFilterDictionaryFromDictionary(pdfDoc, dict, abr, data);
2637}
2638
2639bool isJbig2DecodeFilterDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2640 return true;
2641}
2642
2643bool Jbig2DecodeFilterDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfJbig2DecodeFilterDictionary** data) {
2644 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2645 if (value == NULL) { return false; }
2646 if (data == NULL) { return true; }
2647 return mapJbig2DecodeFilterDictionary(*pdfDoc, *value, (SkPdfJbig2DecodeFilterDictionary**)data);
2648}
2649
2650bool Jbig2DecodeFilterDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfJbig2DecodeFilterDictionary** data) {
2651 if (Jbig2DecodeFilterDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2652 if (abr == NULL || *abr == '\0') return false;
2653 return Jbig2DecodeFilterDictionaryFromDictionary(pdfDoc, dict, abr, data);
2654}
2655
2656bool isDctdecodeFilterDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2657 return true;
2658}
2659
2660bool DctdecodeFilterDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfDctdecodeFilterDictionary** data) {
2661 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2662 if (value == NULL) { return false; }
2663 if (data == NULL) { return true; }
2664 return mapDctdecodeFilterDictionary(*pdfDoc, *value, (SkPdfDctdecodeFilterDictionary**)data);
2665}
2666
2667bool DctdecodeFilterDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfDctdecodeFilterDictionary** data) {
2668 if (DctdecodeFilterDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2669 if (abr == NULL || *abr == '\0') return false;
2670 return DctdecodeFilterDictionaryFromDictionary(pdfDoc, dict, abr, data);
2671}
2672
2673bool isFileTrailerDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2674 return true;
2675}
2676
2677bool FileTrailerDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfFileTrailerDictionary** data) {
2678 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2679 if (value == NULL) { return false; }
2680 if (data == NULL) { return true; }
2681 return mapFileTrailerDictionary(*pdfDoc, *value, (SkPdfFileTrailerDictionary**)data);
2682}
2683
2684bool FileTrailerDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfFileTrailerDictionary** data) {
2685 if (FileTrailerDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2686 if (abr == NULL || *abr == '\0') return false;
2687 return FileTrailerDictionaryFromDictionary(pdfDoc, dict, abr, data);
2688}
2689
2690bool isEncryptionCommonDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2691 return true;
2692}
2693
2694bool EncryptionCommonDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfEncryptionCommonDictionary** data) {
2695 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2696 if (value == NULL) { return false; }
2697 if (data == NULL) { return true; }
2698 return mapEncryptionCommonDictionary(*pdfDoc, *value, (SkPdfEncryptionCommonDictionary**)data);
2699}
2700
2701bool EncryptionCommonDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfEncryptionCommonDictionary** data) {
2702 if (EncryptionCommonDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2703 if (abr == NULL || *abr == '\0') return false;
2704 return EncryptionCommonDictionaryFromDictionary(pdfDoc, dict, abr, data);
2705}
2706
2707bool isStandardSecurityHandlerDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2708 return true;
2709}
2710
2711bool StandardSecurityHandlerDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfStandardSecurityHandlerDictionary** data) {
2712 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2713 if (value == NULL) { return false; }
2714 if (data == NULL) { return true; }
2715 return mapStandardSecurityHandlerDictionary(*pdfDoc, *value, (SkPdfStandardSecurityHandlerDictionary**)data);
2716}
2717
2718bool StandardSecurityHandlerDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfStandardSecurityHandlerDictionary** data) {
2719 if (StandardSecurityHandlerDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2720 if (abr == NULL || *abr == '\0') return false;
2721 return StandardSecurityHandlerDictionaryFromDictionary(pdfDoc, dict, abr, data);
2722}
2723
2724bool isCatalogDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2725 return true;
2726}
2727
2728bool CatalogDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfCatalogDictionary** data) {
2729 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2730 if (value == NULL) { return false; }
2731 if (data == NULL) { return true; }
2732 return mapCatalogDictionary(*pdfDoc, *value, (SkPdfCatalogDictionary**)data);
2733}
2734
2735bool CatalogDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfCatalogDictionary** data) {
2736 if (CatalogDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2737 if (abr == NULL || *abr == '\0') return false;
2738 return CatalogDictionaryFromDictionary(pdfDoc, dict, abr, data);
2739}
2740
2741bool isPageTreeNodeDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2742 return true;
2743}
2744
2745bool PageTreeNodeDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfPageTreeNodeDictionary** data) {
2746 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2747 if (value == NULL) { return false; }
2748 if (data == NULL) { return true; }
2749 return mapPageTreeNodeDictionary(*pdfDoc, *value, (SkPdfPageTreeNodeDictionary**)data);
2750}
2751
2752bool PageTreeNodeDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfPageTreeNodeDictionary** data) {
2753 if (PageTreeNodeDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2754 if (abr == NULL || *abr == '\0') return false;
2755 return PageTreeNodeDictionaryFromDictionary(pdfDoc, dict, abr, data);
2756}
2757
2758bool isPageObjectDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2759 return true;
2760}
2761
2762bool PageObjectDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfPageObjectDictionary** data) {
2763 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2764 if (value == NULL) { return false; }
2765 if (data == NULL) { return true; }
2766 return mapPageObjectDictionary(*pdfDoc, *value, (SkPdfPageObjectDictionary**)data);
2767}
2768
2769bool PageObjectDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfPageObjectDictionary** data) {
2770 if (PageObjectDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2771 if (abr == NULL || *abr == '\0') return false;
2772 return PageObjectDictionaryFromDictionary(pdfDoc, dict, abr, data);
2773}
2774
2775bool isNameDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2776 return true;
2777}
2778
2779bool NameDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfNameDictionary** data) {
2780 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2781 if (value == NULL) { return false; }
2782 if (data == NULL) { return true; }
2783 return mapNameDictionary(*pdfDoc, *value, (SkPdfNameDictionary**)data);
2784}
2785
2786bool NameDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfNameDictionary** data) {
2787 if (NameDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2788 if (abr == NULL || *abr == '\0') return false;
2789 return NameDictionaryFromDictionary(pdfDoc, dict, abr, data);
2790}
2791
2792bool isResourceDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2793 return true;
2794}
2795
2796bool ResourceDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfResourceDictionary** data) {
2797 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2798 if (value == NULL) { return false; }
2799 if (data == NULL) { return true; }
2800 return mapResourceDictionary(*pdfDoc, *value, (SkPdfResourceDictionary**)data);
2801}
2802
2803bool ResourceDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfResourceDictionary** data) {
2804 if (ResourceDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2805 if (abr == NULL || *abr == '\0') return false;
2806 return ResourceDictionaryFromDictionary(pdfDoc, dict, abr, data);
2807}
2808
2809bool isNameTreeNodeDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2810 return true;
2811}
2812
2813bool NameTreeNodeDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfNameTreeNodeDictionary** data) {
2814 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2815 if (value == NULL) { return false; }
2816 if (data == NULL) { return true; }
2817 return mapNameTreeNodeDictionary(*pdfDoc, *value, (SkPdfNameTreeNodeDictionary**)data);
2818}
2819
2820bool NameTreeNodeDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfNameTreeNodeDictionary** data) {
2821 if (NameTreeNodeDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2822 if (abr == NULL || *abr == '\0') return false;
2823 return NameTreeNodeDictionaryFromDictionary(pdfDoc, dict, abr, data);
2824}
2825
2826bool isNumberTreeNodeDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2827 return true;
2828}
2829
2830bool NumberTreeNodeDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfNumberTreeNodeDictionary** data) {
2831 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2832 if (value == NULL) { return false; }
2833 if (data == NULL) { return true; }
2834 return mapNumberTreeNodeDictionary(*pdfDoc, *value, (SkPdfNumberTreeNodeDictionary**)data);
2835}
2836
2837bool NumberTreeNodeDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfNumberTreeNodeDictionary** data) {
2838 if (NumberTreeNodeDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2839 if (abr == NULL || *abr == '\0') return false;
2840 return NumberTreeNodeDictionaryFromDictionary(pdfDoc, dict, abr, data);
2841}
2842
2843bool isFunctionCommonDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2844 return true;
2845}
2846
2847bool FunctionCommonDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfFunctionCommonDictionary** data) {
2848 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2849 if (value == NULL) { return false; }
2850 if (data == NULL) { return true; }
2851 return mapFunctionCommonDictionary(*pdfDoc, *value, (SkPdfFunctionCommonDictionary**)data);
2852}
2853
2854bool FunctionCommonDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfFunctionCommonDictionary** data) {
2855 if (FunctionCommonDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2856 if (abr == NULL || *abr == '\0') return false;
2857 return FunctionCommonDictionaryFromDictionary(pdfDoc, dict, abr, data);
2858}
2859
2860bool isType0FunctionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2861 return true;
2862}
2863
2864bool Type0FunctionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfType0FunctionDictionary** data) {
2865 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2866 if (value == NULL) { return false; }
2867 if (data == NULL) { return true; }
2868 return mapType0FunctionDictionary(*pdfDoc, *value, (SkPdfType0FunctionDictionary**)data);
2869}
2870
2871bool Type0FunctionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfType0FunctionDictionary** data) {
2872 if (Type0FunctionDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2873 if (abr == NULL || *abr == '\0') return false;
2874 return Type0FunctionDictionaryFromDictionary(pdfDoc, dict, abr, data);
2875}
2876
2877bool isType2FunctionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2878 return true;
2879}
2880
2881bool Type2FunctionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfType2FunctionDictionary** data) {
2882 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2883 if (value == NULL) { return false; }
2884 if (data == NULL) { return true; }
2885 return mapType2FunctionDictionary(*pdfDoc, *value, (SkPdfType2FunctionDictionary**)data);
2886}
2887
2888bool Type2FunctionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfType2FunctionDictionary** data) {
2889 if (Type2FunctionDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2890 if (abr == NULL || *abr == '\0') return false;
2891 return Type2FunctionDictionaryFromDictionary(pdfDoc, dict, abr, data);
2892}
2893
2894bool isType3FunctionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2895 return true;
2896}
2897
2898bool Type3FunctionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfType3FunctionDictionary** data) {
2899 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2900 if (value == NULL) { return false; }
2901 if (data == NULL) { return true; }
2902 return mapType3FunctionDictionary(*pdfDoc, *value, (SkPdfType3FunctionDictionary**)data);
2903}
2904
2905bool Type3FunctionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfType3FunctionDictionary** data) {
2906 if (Type3FunctionDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2907 if (abr == NULL || *abr == '\0') return false;
2908 return Type3FunctionDictionaryFromDictionary(pdfDoc, dict, abr, data);
2909}
2910
2911bool isFileSpecificationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2912 return true;
2913}
2914
2915bool FileSpecificationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfFileSpecificationDictionary** data) {
2916 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2917 if (value == NULL) { return false; }
2918 if (data == NULL) { return true; }
2919 return mapFileSpecificationDictionary(*pdfDoc, *value, (SkPdfFileSpecificationDictionary**)data);
2920}
2921
2922bool FileSpecificationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfFileSpecificationDictionary** data) {
2923 if (FileSpecificationDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2924 if (abr == NULL || *abr == '\0') return false;
2925 return FileSpecificationDictionaryFromDictionary(pdfDoc, dict, abr, data);
2926}
2927
2928bool isEmbeddedFileStreamDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2929 return true;
2930}
2931
2932bool EmbeddedFileStreamDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfEmbeddedFileStreamDictionary** data) {
2933 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2934 if (value == NULL) { return false; }
2935 if (data == NULL) { return true; }
2936 return mapEmbeddedFileStreamDictionary(*pdfDoc, *value, (SkPdfEmbeddedFileStreamDictionary**)data);
2937}
2938
2939bool EmbeddedFileStreamDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfEmbeddedFileStreamDictionary** data) {
2940 if (EmbeddedFileStreamDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2941 if (abr == NULL || *abr == '\0') return false;
2942 return EmbeddedFileStreamDictionaryFromDictionary(pdfDoc, dict, abr, data);
2943}
2944
2945bool isEmbeddedFileParameterDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2946 return true;
2947}
2948
2949bool EmbeddedFileParameterDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfEmbeddedFileParameterDictionary** data) {
2950 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2951 if (value == NULL) { return false; }
2952 if (data == NULL) { return true; }
2953 return mapEmbeddedFileParameterDictionary(*pdfDoc, *value, (SkPdfEmbeddedFileParameterDictionary**)data);
2954}
2955
2956bool EmbeddedFileParameterDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfEmbeddedFileParameterDictionary** data) {
2957 if (EmbeddedFileParameterDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2958 if (abr == NULL || *abr == '\0') return false;
2959 return EmbeddedFileParameterDictionaryFromDictionary(pdfDoc, dict, abr, data);
2960}
2961
2962bool isMacOsFileInformationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2963 return true;
2964}
2965
2966bool MacOsFileInformationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfMacOsFileInformationDictionary** data) {
2967 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2968 if (value == NULL) { return false; }
2969 if (data == NULL) { return true; }
2970 return mapMacOsFileInformationDictionary(*pdfDoc, *value, (SkPdfMacOsFileInformationDictionary**)data);
2971}
2972
2973bool MacOsFileInformationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfMacOsFileInformationDictionary** data) {
2974 if (MacOsFileInformationDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2975 if (abr == NULL || *abr == '\0') return false;
2976 return MacOsFileInformationDictionaryFromDictionary(pdfDoc, dict, abr, data);
2977}
2978
2979bool isGraphicsStateDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2980 return true;
2981}
2982
2983bool GraphicsStateDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfGraphicsStateDictionary** data) {
2984 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2985 if (value == NULL) { return false; }
2986 if (data == NULL) { return true; }
2987 return mapGraphicsStateDictionary(*pdfDoc, *value, (SkPdfGraphicsStateDictionary**)data);
2988}
2989
2990bool GraphicsStateDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfGraphicsStateDictionary** data) {
2991 if (GraphicsStateDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2992 if (abr == NULL || *abr == '\0') return false;
2993 return GraphicsStateDictionaryFromDictionary(pdfDoc, dict, abr, data);
2994}
2995
2996bool isCalgrayColorSpaceDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2997 return true;
2998}
2999
3000bool CalgrayColorSpaceDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfCalgrayColorSpaceDictionary** data) {
3001 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3002 if (value == NULL) { return false; }
3003 if (data == NULL) { return true; }
3004 return mapCalgrayColorSpaceDictionary(*pdfDoc, *value, (SkPdfCalgrayColorSpaceDictionary**)data);
3005}
3006
3007bool CalgrayColorSpaceDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfCalgrayColorSpaceDictionary** data) {
3008 if (CalgrayColorSpaceDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3009 if (abr == NULL || *abr == '\0') return false;
3010 return CalgrayColorSpaceDictionaryFromDictionary(pdfDoc, dict, abr, data);
3011}
3012
3013bool isCalrgbColorSpaceDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3014 return true;
3015}
3016
3017bool CalrgbColorSpaceDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfCalrgbColorSpaceDictionary** data) {
3018 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3019 if (value == NULL) { return false; }
3020 if (data == NULL) { return true; }
3021 return mapCalrgbColorSpaceDictionary(*pdfDoc, *value, (SkPdfCalrgbColorSpaceDictionary**)data);
3022}
3023
3024bool CalrgbColorSpaceDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfCalrgbColorSpaceDictionary** data) {
3025 if (CalrgbColorSpaceDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3026 if (abr == NULL || *abr == '\0') return false;
3027 return CalrgbColorSpaceDictionaryFromDictionary(pdfDoc, dict, abr, data);
3028}
3029
3030bool isLabColorSpaceDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3031 return true;
3032}
3033
3034bool LabColorSpaceDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfLabColorSpaceDictionary** data) {
3035 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3036 if (value == NULL) { return false; }
3037 if (data == NULL) { return true; }
3038 return mapLabColorSpaceDictionary(*pdfDoc, *value, (SkPdfLabColorSpaceDictionary**)data);
3039}
3040
3041bool LabColorSpaceDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfLabColorSpaceDictionary** data) {
3042 if (LabColorSpaceDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3043 if (abr == NULL || *abr == '\0') return false;
3044 return LabColorSpaceDictionaryFromDictionary(pdfDoc, dict, abr, data);
3045}
3046
3047bool isIccProfileStreamDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3048 return true;
3049}
3050
3051bool IccProfileStreamDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfIccProfileStreamDictionary** data) {
3052 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3053 if (value == NULL) { return false; }
3054 if (data == NULL) { return true; }
3055 return mapIccProfileStreamDictionary(*pdfDoc, *value, (SkPdfIccProfileStreamDictionary**)data);
3056}
3057
3058bool IccProfileStreamDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfIccProfileStreamDictionary** data) {
3059 if (IccProfileStreamDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3060 if (abr == NULL || *abr == '\0') return false;
3061 return IccProfileStreamDictionaryFromDictionary(pdfDoc, dict, abr, data);
3062}
3063
3064bool isDeviceNColorSpaceDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3065 return true;
3066}
3067
3068bool DeviceNColorSpaceDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfDeviceNColorSpaceDictionary** data) {
3069 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3070 if (value == NULL) { return false; }
3071 if (data == NULL) { return true; }
3072 return mapDeviceNColorSpaceDictionary(*pdfDoc, *value, (SkPdfDeviceNColorSpaceDictionary**)data);
3073}
3074
3075bool DeviceNColorSpaceDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfDeviceNColorSpaceDictionary** data) {
3076 if (DeviceNColorSpaceDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3077 if (abr == NULL || *abr == '\0') return false;
3078 return DeviceNColorSpaceDictionaryFromDictionary(pdfDoc, dict, abr, data);
3079}
3080
3081bool isType1PatternDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3082 return true;
3083}
3084
3085bool Type1PatternDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfType1PatternDictionary** data) {
3086 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3087 if (value == NULL) { return false; }
3088 if (data == NULL) { return true; }
3089 return mapType1PatternDictionary(*pdfDoc, *value, (SkPdfType1PatternDictionary**)data);
3090}
3091
3092bool Type1PatternDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfType1PatternDictionary** data) {
3093 if (Type1PatternDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3094 if (abr == NULL || *abr == '\0') return false;
3095 return Type1PatternDictionaryFromDictionary(pdfDoc, dict, abr, data);
3096}
3097
3098bool isType2PatternDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3099 return true;
3100}
3101
3102bool Type2PatternDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfType2PatternDictionary** data) {
3103 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3104 if (value == NULL) { return false; }
3105 if (data == NULL) { return true; }
3106 return mapType2PatternDictionary(*pdfDoc, *value, (SkPdfType2PatternDictionary**)data);
3107}
3108
3109bool Type2PatternDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfType2PatternDictionary** data) {
3110 if (Type2PatternDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3111 if (abr == NULL || *abr == '\0') return false;
3112 return Type2PatternDictionaryFromDictionary(pdfDoc, dict, abr, data);
3113}
3114
3115bool isShadingDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3116 return true;
3117}
3118
3119bool ShadingDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfShadingDictionary** data) {
3120 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3121 if (value == NULL) { return false; }
3122 if (data == NULL) { return true; }
3123 return mapShadingDictionary(*pdfDoc, *value, (SkPdfShadingDictionary**)data);
3124}
3125
3126bool ShadingDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfShadingDictionary** data) {
3127 if (ShadingDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3128 if (abr == NULL || *abr == '\0') return false;
3129 return ShadingDictionaryFromDictionary(pdfDoc, dict, abr, data);
3130}
3131
3132bool isType1ShadingDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3133 return true;
3134}
3135
3136bool Type1ShadingDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfType1ShadingDictionary** data) {
3137 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3138 if (value == NULL) { return false; }
3139 if (data == NULL) { return true; }
3140 return mapType1ShadingDictionary(*pdfDoc, *value, (SkPdfType1ShadingDictionary**)data);
3141}
3142
3143bool Type1ShadingDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfType1ShadingDictionary** data) {
3144 if (Type1ShadingDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3145 if (abr == NULL || *abr == '\0') return false;
3146 return Type1ShadingDictionaryFromDictionary(pdfDoc, dict, abr, data);
3147}
3148
3149bool isType2ShadingDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3150 return true;
3151}
3152
3153bool Type2ShadingDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfType2ShadingDictionary** data) {
3154 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3155 if (value == NULL) { return false; }
3156 if (data == NULL) { return true; }
3157 return mapType2ShadingDictionary(*pdfDoc, *value, (SkPdfType2ShadingDictionary**)data);
3158}
3159
3160bool Type2ShadingDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfType2ShadingDictionary** data) {
3161 if (Type2ShadingDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3162 if (abr == NULL || *abr == '\0') return false;
3163 return Type2ShadingDictionaryFromDictionary(pdfDoc, dict, abr, data);
3164}
3165
3166bool isType3ShadingDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3167 return true;
3168}
3169
3170bool Type3ShadingDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfType3ShadingDictionary** data) {
3171 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3172 if (value == NULL) { return false; }
3173 if (data == NULL) { return true; }
3174 return mapType3ShadingDictionary(*pdfDoc, *value, (SkPdfType3ShadingDictionary**)data);
3175}
3176
3177bool Type3ShadingDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfType3ShadingDictionary** data) {
3178 if (Type3ShadingDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3179 if (abr == NULL || *abr == '\0') return false;
3180 return Type3ShadingDictionaryFromDictionary(pdfDoc, dict, abr, data);
3181}
3182
3183bool isType4ShadingDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3184 return true;
3185}
3186
3187bool Type4ShadingDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfType4ShadingDictionary** data) {
3188 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3189 if (value == NULL) { return false; }
3190 if (data == NULL) { return true; }
3191 return mapType4ShadingDictionary(*pdfDoc, *value, (SkPdfType4ShadingDictionary**)data);
3192}
3193
3194bool Type4ShadingDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfType4ShadingDictionary** data) {
3195 if (Type4ShadingDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3196 if (abr == NULL || *abr == '\0') return false;
3197 return Type4ShadingDictionaryFromDictionary(pdfDoc, dict, abr, data);
3198}
3199
3200bool isType5ShadingDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3201 return true;
3202}
3203
3204bool Type5ShadingDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfType5ShadingDictionary** data) {
3205 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3206 if (value == NULL) { return false; }
3207 if (data == NULL) { return true; }
3208 return mapType5ShadingDictionary(*pdfDoc, *value, (SkPdfType5ShadingDictionary**)data);
3209}
3210
3211bool Type5ShadingDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfType5ShadingDictionary** data) {
3212 if (Type5ShadingDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3213 if (abr == NULL || *abr == '\0') return false;
3214 return Type5ShadingDictionaryFromDictionary(pdfDoc, dict, abr, data);
3215}
3216
3217bool isType6ShadingDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3218 return true;
3219}
3220
3221bool Type6ShadingDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfType6ShadingDictionary** data) {
3222 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3223 if (value == NULL) { return false; }
3224 if (data == NULL) { return true; }
3225 return mapType6ShadingDictionary(*pdfDoc, *value, (SkPdfType6ShadingDictionary**)data);
3226}
3227
3228bool Type6ShadingDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfType6ShadingDictionary** data) {
3229 if (Type6ShadingDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3230 if (abr == NULL || *abr == '\0') return false;
3231 return Type6ShadingDictionaryFromDictionary(pdfDoc, dict, abr, data);
3232}
3233
3234bool isImageDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3235 std::string Subtype;
edisonn@google.comab03e682013-06-28 18:51:20 +00003236 if (!podofoObj.IsDictionary()) return false;
edisonn@google.com131d4ee2013-06-26 17:48:12 +00003237 if (!NameFromDictionary(&podofoDoc, podofoObj.GetDictionary(), "Subtype", "", &Subtype)) return false;
3238 if ((Subtype != "Image")) return false;
3239
3240 return true;
3241}
3242
3243bool ImageDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfImageDictionary** data) {
3244 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3245 if (value == NULL) { return false; }
3246 if (data == NULL) { return true; }
3247 return mapImageDictionary(*pdfDoc, *value, (SkPdfImageDictionary**)data);
3248}
3249
3250bool ImageDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfImageDictionary** data) {
3251 if (ImageDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3252 if (abr == NULL || *abr == '\0') return false;
3253 return ImageDictionaryFromDictionary(pdfDoc, dict, abr, data);
3254}
3255
3256bool isAlternateImageDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3257 return true;
3258}
3259
3260bool AlternateImageDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfAlternateImageDictionary** data) {
3261 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3262 if (value == NULL) { return false; }
3263 if (data == NULL) { return true; }
3264 return mapAlternateImageDictionary(*pdfDoc, *value, (SkPdfAlternateImageDictionary**)data);
3265}
3266
3267bool AlternateImageDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfAlternateImageDictionary** data) {
3268 if (AlternateImageDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3269 if (abr == NULL || *abr == '\0') return false;
3270 return AlternateImageDictionaryFromDictionary(pdfDoc, dict, abr, data);
3271}
3272
3273bool isType1FormDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3274 std::string Subtype;
edisonn@google.comab03e682013-06-28 18:51:20 +00003275 if (!podofoObj.IsDictionary()) return false;
edisonn@google.com131d4ee2013-06-26 17:48:12 +00003276 if (!NameFromDictionary(&podofoDoc, podofoObj.GetDictionary(), "Subtype", "", &Subtype)) return false;
3277 if ((Subtype != "Form")) return false;
3278
3279 return true;
3280}
3281
3282bool Type1FormDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfType1FormDictionary** data) {
3283 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3284 if (value == NULL) { return false; }
3285 if (data == NULL) { return true; }
3286 return mapType1FormDictionary(*pdfDoc, *value, (SkPdfType1FormDictionary**)data);
3287}
3288
3289bool Type1FormDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfType1FormDictionary** data) {
3290 if (Type1FormDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3291 if (abr == NULL || *abr == '\0') return false;
3292 return Type1FormDictionaryFromDictionary(pdfDoc, dict, abr, data);
3293}
3294
3295bool isGroupAttributesDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3296 return true;
3297}
3298
3299bool GroupAttributesDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfGroupAttributesDictionary** data) {
3300 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3301 if (value == NULL) { return false; }
3302 if (data == NULL) { return true; }
3303 return mapGroupAttributesDictionary(*pdfDoc, *value, (SkPdfGroupAttributesDictionary**)data);
3304}
3305
3306bool GroupAttributesDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfGroupAttributesDictionary** data) {
3307 if (GroupAttributesDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3308 if (abr == NULL || *abr == '\0') return false;
3309 return GroupAttributesDictionaryFromDictionary(pdfDoc, dict, abr, data);
3310}
3311
3312bool isReferenceDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3313 return true;
3314}
3315
3316bool ReferenceDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfReferenceDictionary** data) {
3317 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3318 if (value == NULL) { return false; }
3319 if (data == NULL) { return true; }
3320 return mapReferenceDictionary(*pdfDoc, *value, (SkPdfReferenceDictionary**)data);
3321}
3322
3323bool ReferenceDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfReferenceDictionary** data) {
3324 if (ReferenceDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3325 if (abr == NULL || *abr == '\0') return false;
3326 return ReferenceDictionaryFromDictionary(pdfDoc, dict, abr, data);
3327}
3328
3329bool isPSXobjectDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3330 return true;
3331}
3332
3333bool PSXobjectDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfPSXobjectDictionary** data) {
3334 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3335 if (value == NULL) { return false; }
3336 if (data == NULL) { return true; }
3337 return mapPSXobjectDictionary(*pdfDoc, *value, (SkPdfPSXobjectDictionary**)data);
3338}
3339
3340bool PSXobjectDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfPSXobjectDictionary** data) {
3341 if (PSXobjectDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3342 if (abr == NULL || *abr == '\0') return false;
3343 return PSXobjectDictionaryFromDictionary(pdfDoc, dict, abr, data);
3344}
3345
3346bool isType1FontDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3347 std::string Subtype;
edisonn@google.comab03e682013-06-28 18:51:20 +00003348 if (!podofoObj.IsDictionary()) return false;
edisonn@google.com131d4ee2013-06-26 17:48:12 +00003349 if (!NameFromDictionary(&podofoDoc, podofoObj.GetDictionary(), "Subtype", "", &Subtype)) return false;
3350 if ((Subtype != "MMType1") && (Subtype != "TrueType") && (Subtype != "Type3") && (Subtype != "Type1")) return false;
3351
3352 return true;
3353}
3354
3355bool Type1FontDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfType1FontDictionary** data) {
3356 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3357 if (value == NULL) { return false; }
3358 if (data == NULL) { return true; }
3359 return mapType1FontDictionary(*pdfDoc, *value, (SkPdfType1FontDictionary**)data);
3360}
3361
3362bool Type1FontDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfType1FontDictionary** data) {
3363 if (Type1FontDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3364 if (abr == NULL || *abr == '\0') return false;
3365 return Type1FontDictionaryFromDictionary(pdfDoc, dict, abr, data);
3366}
3367
3368bool isType3FontDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3369 std::string Subtype;
edisonn@google.comab03e682013-06-28 18:51:20 +00003370 if (!podofoObj.IsDictionary()) return false;
edisonn@google.com131d4ee2013-06-26 17:48:12 +00003371 if (!NameFromDictionary(&podofoDoc, podofoObj.GetDictionary(), "Subtype", "", &Subtype)) return false;
3372 if ((Subtype != "Type3")) return false;
3373
3374 return true;
3375}
3376
3377bool Type3FontDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfType3FontDictionary** data) {
3378 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3379 if (value == NULL) { return false; }
3380 if (data == NULL) { return true; }
3381 return mapType3FontDictionary(*pdfDoc, *value, (SkPdfType3FontDictionary**)data);
3382}
3383
3384bool Type3FontDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfType3FontDictionary** data) {
3385 if (Type3FontDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3386 if (abr == NULL || *abr == '\0') return false;
3387 return Type3FontDictionaryFromDictionary(pdfDoc, dict, abr, data);
3388}
3389
3390bool isEncodingDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3391 return true;
3392}
3393
3394bool EncodingDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfEncodingDictionary** data) {
3395 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3396 if (value == NULL) { return false; }
3397 if (data == NULL) { return true; }
3398 return mapEncodingDictionary(*pdfDoc, *value, (SkPdfEncodingDictionary**)data);
3399}
3400
3401bool EncodingDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfEncodingDictionary** data) {
3402 if (EncodingDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3403 if (abr == NULL || *abr == '\0') return false;
3404 return EncodingDictionaryFromDictionary(pdfDoc, dict, abr, data);
3405}
3406
3407bool isCIDSystemInfoDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3408 return true;
3409}
3410
3411bool CIDSystemInfoDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfCIDSystemInfoDictionary** data) {
3412 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3413 if (value == NULL) { return false; }
3414 if (data == NULL) { return true; }
3415 return mapCIDSystemInfoDictionary(*pdfDoc, *value, (SkPdfCIDSystemInfoDictionary**)data);
3416}
3417
3418bool CIDSystemInfoDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfCIDSystemInfoDictionary** data) {
3419 if (CIDSystemInfoDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3420 if (abr == NULL || *abr == '\0') return false;
3421 return CIDSystemInfoDictionaryFromDictionary(pdfDoc, dict, abr, data);
3422}
3423
3424bool isCIDFontDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3425 std::string Subtype;
edisonn@google.comab03e682013-06-28 18:51:20 +00003426 if (!podofoObj.IsDictionary()) return false;
edisonn@google.com131d4ee2013-06-26 17:48:12 +00003427 if (!NameFromDictionary(&podofoDoc, podofoObj.GetDictionary(), "Subtype", "", &Subtype)) return false;
3428 if ((Subtype != "CIDFontType0") && (Subtype != "CIDFontType2")) return false;
3429
3430 return true;
3431}
3432
3433bool CIDFontDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfCIDFontDictionary** data) {
3434 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3435 if (value == NULL) { return false; }
3436 if (data == NULL) { return true; }
3437 return mapCIDFontDictionary(*pdfDoc, *value, (SkPdfCIDFontDictionary**)data);
3438}
3439
3440bool CIDFontDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfCIDFontDictionary** data) {
3441 if (CIDFontDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3442 if (abr == NULL || *abr == '\0') return false;
3443 return CIDFontDictionaryFromDictionary(pdfDoc, dict, abr, data);
3444}
3445
3446bool isCMapDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3447 return true;
3448}
3449
3450bool CMapDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfCMapDictionary** data) {
3451 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3452 if (value == NULL) { return false; }
3453 if (data == NULL) { return true; }
3454 return mapCMapDictionary(*pdfDoc, *value, (SkPdfCMapDictionary**)data);
3455}
3456
3457bool CMapDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfCMapDictionary** data) {
3458 if (CMapDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3459 if (abr == NULL || *abr == '\0') return false;
3460 return CMapDictionaryFromDictionary(pdfDoc, dict, abr, data);
3461}
3462
3463bool isType0FontDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3464 std::string Subtype;
edisonn@google.comab03e682013-06-28 18:51:20 +00003465 if (!podofoObj.IsDictionary()) return false;
edisonn@google.com131d4ee2013-06-26 17:48:12 +00003466 if (!NameFromDictionary(&podofoDoc, podofoObj.GetDictionary(), "Subtype", "", &Subtype)) return false;
3467 if ((Subtype != "Type0")) return false;
3468
3469 return true;
3470}
3471
3472bool Type0FontDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfType0FontDictionary** data) {
3473 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3474 if (value == NULL) { return false; }
3475 if (data == NULL) { return true; }
3476 return mapType0FontDictionary(*pdfDoc, *value, (SkPdfType0FontDictionary**)data);
3477}
3478
3479bool Type0FontDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfType0FontDictionary** data) {
3480 if (Type0FontDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3481 if (abr == NULL || *abr == '\0') return false;
3482 return Type0FontDictionaryFromDictionary(pdfDoc, dict, abr, data);
3483}
3484
3485bool isFontDescriptorDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
edisonn@google.comeee4b652013-06-27 13:22:42 +00003486 std::string Type;
edisonn@google.comab03e682013-06-28 18:51:20 +00003487 if (!podofoObj.IsDictionary()) return false;
edisonn@google.comeee4b652013-06-27 13:22:42 +00003488 if (!NameFromDictionary(&podofoDoc, podofoObj.GetDictionary(), "Type", "", &Type)) return false;
3489 if ((Type != "FontDescriptor")) return false;
3490
edisonn@google.com131d4ee2013-06-26 17:48:12 +00003491 return true;
3492}
3493
3494bool FontDescriptorDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfFontDescriptorDictionary** data) {
3495 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3496 if (value == NULL) { return false; }
3497 if (data == NULL) { return true; }
3498 return mapFontDescriptorDictionary(*pdfDoc, *value, (SkPdfFontDescriptorDictionary**)data);
3499}
3500
3501bool FontDescriptorDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfFontDescriptorDictionary** data) {
3502 if (FontDescriptorDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3503 if (abr == NULL || *abr == '\0') return false;
3504 return FontDescriptorDictionaryFromDictionary(pdfDoc, dict, abr, data);
3505}
3506
3507bool isCIDFontDescriptorDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3508 return true;
3509}
3510
3511bool CIDFontDescriptorDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfCIDFontDescriptorDictionary** data) {
3512 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3513 if (value == NULL) { return false; }
3514 if (data == NULL) { return true; }
3515 return mapCIDFontDescriptorDictionary(*pdfDoc, *value, (SkPdfCIDFontDescriptorDictionary**)data);
3516}
3517
3518bool CIDFontDescriptorDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfCIDFontDescriptorDictionary** data) {
3519 if (CIDFontDescriptorDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3520 if (abr == NULL || *abr == '\0') return false;
3521 return CIDFontDescriptorDictionaryFromDictionary(pdfDoc, dict, abr, data);
3522}
3523
3524bool isEmbeddedFontStreamDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3525 return true;
3526}
3527
3528bool EmbeddedFontStreamDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfEmbeddedFontStreamDictionary** data) {
3529 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3530 if (value == NULL) { return false; }
3531 if (data == NULL) { return true; }
3532 return mapEmbeddedFontStreamDictionary(*pdfDoc, *value, (SkPdfEmbeddedFontStreamDictionary**)data);
3533}
3534
3535bool EmbeddedFontStreamDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfEmbeddedFontStreamDictionary** data) {
3536 if (EmbeddedFontStreamDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3537 if (abr == NULL || *abr == '\0') return false;
3538 return EmbeddedFontStreamDictionaryFromDictionary(pdfDoc, dict, abr, data);
3539}
3540
3541bool isType1HalftoneDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3542 return true;
3543}
3544
3545bool Type1HalftoneDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfType1HalftoneDictionary** data) {
3546 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3547 if (value == NULL) { return false; }
3548 if (data == NULL) { return true; }
3549 return mapType1HalftoneDictionary(*pdfDoc, *value, (SkPdfType1HalftoneDictionary**)data);
3550}
3551
3552bool Type1HalftoneDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfType1HalftoneDictionary** data) {
3553 if (Type1HalftoneDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3554 if (abr == NULL || *abr == '\0') return false;
3555 return Type1HalftoneDictionaryFromDictionary(pdfDoc, dict, abr, data);
3556}
3557
3558bool isType6HalftoneDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3559 return true;
3560}
3561
3562bool Type6HalftoneDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfType6HalftoneDictionary** data) {
3563 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3564 if (value == NULL) { return false; }
3565 if (data == NULL) { return true; }
3566 return mapType6HalftoneDictionary(*pdfDoc, *value, (SkPdfType6HalftoneDictionary**)data);
3567}
3568
3569bool Type6HalftoneDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfType6HalftoneDictionary** data) {
3570 if (Type6HalftoneDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3571 if (abr == NULL || *abr == '\0') return false;
3572 return Type6HalftoneDictionaryFromDictionary(pdfDoc, dict, abr, data);
3573}
3574
3575bool isType10HalftoneDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3576 return true;
3577}
3578
3579bool Type10HalftoneDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfType10HalftoneDictionary** data) {
3580 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3581 if (value == NULL) { return false; }
3582 if (data == NULL) { return true; }
3583 return mapType10HalftoneDictionary(*pdfDoc, *value, (SkPdfType10HalftoneDictionary**)data);
3584}
3585
3586bool Type10HalftoneDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfType10HalftoneDictionary** data) {
3587 if (Type10HalftoneDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3588 if (abr == NULL || *abr == '\0') return false;
3589 return Type10HalftoneDictionaryFromDictionary(pdfDoc, dict, abr, data);
3590}
3591
3592bool isType16HalftoneDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3593 return true;
3594}
3595
3596bool Type16HalftoneDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfType16HalftoneDictionary** data) {
3597 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3598 if (value == NULL) { return false; }
3599 if (data == NULL) { return true; }
3600 return mapType16HalftoneDictionary(*pdfDoc, *value, (SkPdfType16HalftoneDictionary**)data);
3601}
3602
3603bool Type16HalftoneDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfType16HalftoneDictionary** data) {
3604 if (Type16HalftoneDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3605 if (abr == NULL || *abr == '\0') return false;
3606 return Type16HalftoneDictionaryFromDictionary(pdfDoc, dict, abr, data);
3607}
3608
3609bool isType5HalftoneDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3610 return true;
3611}
3612
3613bool Type5HalftoneDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfType5HalftoneDictionary** data) {
3614 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3615 if (value == NULL) { return false; }
3616 if (data == NULL) { return true; }
3617 return mapType5HalftoneDictionary(*pdfDoc, *value, (SkPdfType5HalftoneDictionary**)data);
3618}
3619
3620bool Type5HalftoneDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfType5HalftoneDictionary** data) {
3621 if (Type5HalftoneDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3622 if (abr == NULL || *abr == '\0') return false;
3623 return Type5HalftoneDictionaryFromDictionary(pdfDoc, dict, abr, data);
3624}
3625
3626bool isSoftMaskDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3627 return true;
3628}
3629
3630bool SoftMaskDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfSoftMaskDictionary** data) {
3631 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3632 if (value == NULL) { return false; }
3633 if (data == NULL) { return true; }
3634 return mapSoftMaskDictionary(*pdfDoc, *value, (SkPdfSoftMaskDictionary**)data);
3635}
3636
3637bool SoftMaskDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfSoftMaskDictionary** data) {
3638 if (SoftMaskDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3639 if (abr == NULL || *abr == '\0') return false;
3640 return SoftMaskDictionaryFromDictionary(pdfDoc, dict, abr, data);
3641}
3642
3643bool isSoftMaskImageDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3644 return true;
3645}
3646
3647bool SoftMaskImageDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfSoftMaskImageDictionary** data) {
3648 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3649 if (value == NULL) { return false; }
3650 if (data == NULL) { return true; }
3651 return mapSoftMaskImageDictionary(*pdfDoc, *value, (SkPdfSoftMaskImageDictionary**)data);
3652}
3653
3654bool SoftMaskImageDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfSoftMaskImageDictionary** data) {
3655 if (SoftMaskImageDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3656 if (abr == NULL || *abr == '\0') return false;
3657 return SoftMaskImageDictionaryFromDictionary(pdfDoc, dict, abr, data);
3658}
3659
3660bool isTransparencyGroupDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3661 return true;
3662}
3663
3664bool TransparencyGroupDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfTransparencyGroupDictionary** data) {
3665 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3666 if (value == NULL) { return false; }
3667 if (data == NULL) { return true; }
3668 return mapTransparencyGroupDictionary(*pdfDoc, *value, (SkPdfTransparencyGroupDictionary**)data);
3669}
3670
3671bool TransparencyGroupDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfTransparencyGroupDictionary** data) {
3672 if (TransparencyGroupDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3673 if (abr == NULL || *abr == '\0') return false;
3674 return TransparencyGroupDictionaryFromDictionary(pdfDoc, dict, abr, data);
3675}
3676
3677bool isViewerPreferencesDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3678 return true;
3679}
3680
3681bool ViewerPreferencesDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfViewerPreferencesDictionary** data) {
3682 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3683 if (value == NULL) { return false; }
3684 if (data == NULL) { return true; }
3685 return mapViewerPreferencesDictionary(*pdfDoc, *value, (SkPdfViewerPreferencesDictionary**)data);
3686}
3687
3688bool ViewerPreferencesDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfViewerPreferencesDictionary** data) {
3689 if (ViewerPreferencesDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3690 if (abr == NULL || *abr == '\0') return false;
3691 return ViewerPreferencesDictionaryFromDictionary(pdfDoc, dict, abr, data);
3692}
3693
3694bool isOutlineDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3695 return true;
3696}
3697
3698bool OutlineDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfOutlineDictionary** data) {
3699 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3700 if (value == NULL) { return false; }
3701 if (data == NULL) { return true; }
3702 return mapOutlineDictionary(*pdfDoc, *value, (SkPdfOutlineDictionary**)data);
3703}
3704
3705bool OutlineDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfOutlineDictionary** data) {
3706 if (OutlineDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3707 if (abr == NULL || *abr == '\0') return false;
3708 return OutlineDictionaryFromDictionary(pdfDoc, dict, abr, data);
3709}
3710
3711bool isOutlineItemDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3712 return true;
3713}
3714
3715bool OutlineItemDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfOutlineItemDictionary** data) {
3716 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3717 if (value == NULL) { return false; }
3718 if (data == NULL) { return true; }
3719 return mapOutlineItemDictionary(*pdfDoc, *value, (SkPdfOutlineItemDictionary**)data);
3720}
3721
3722bool OutlineItemDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfOutlineItemDictionary** data) {
3723 if (OutlineItemDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3724 if (abr == NULL || *abr == '\0') return false;
3725 return OutlineItemDictionaryFromDictionary(pdfDoc, dict, abr, data);
3726}
3727
3728bool isPageLabelDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3729 return true;
3730}
3731
3732bool PageLabelDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfPageLabelDictionary** data) {
3733 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3734 if (value == NULL) { return false; }
3735 if (data == NULL) { return true; }
3736 return mapPageLabelDictionary(*pdfDoc, *value, (SkPdfPageLabelDictionary**)data);
3737}
3738
3739bool PageLabelDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfPageLabelDictionary** data) {
3740 if (PageLabelDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3741 if (abr == NULL || *abr == '\0') return false;
3742 return PageLabelDictionaryFromDictionary(pdfDoc, dict, abr, data);
3743}
3744
3745bool isThreadDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3746 return true;
3747}
3748
3749bool ThreadDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfThreadDictionary** data) {
3750 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3751 if (value == NULL) { return false; }
3752 if (data == NULL) { return true; }
3753 return mapThreadDictionary(*pdfDoc, *value, (SkPdfThreadDictionary**)data);
3754}
3755
3756bool ThreadDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfThreadDictionary** data) {
3757 if (ThreadDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3758 if (abr == NULL || *abr == '\0') return false;
3759 return ThreadDictionaryFromDictionary(pdfDoc, dict, abr, data);
3760}
3761
3762bool isBeadDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3763 return true;
3764}
3765
3766bool BeadDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfBeadDictionary** data) {
3767 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3768 if (value == NULL) { return false; }
3769 if (data == NULL) { return true; }
3770 return mapBeadDictionary(*pdfDoc, *value, (SkPdfBeadDictionary**)data);
3771}
3772
3773bool BeadDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfBeadDictionary** data) {
3774 if (BeadDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3775 if (abr == NULL || *abr == '\0') return false;
3776 return BeadDictionaryFromDictionary(pdfDoc, dict, abr, data);
3777}
3778
3779bool isTransitionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3780 return true;
3781}
3782
3783bool TransitionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfTransitionDictionary** data) {
3784 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3785 if (value == NULL) { return false; }
3786 if (data == NULL) { return true; }
3787 return mapTransitionDictionary(*pdfDoc, *value, (SkPdfTransitionDictionary**)data);
3788}
3789
3790bool TransitionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfTransitionDictionary** data) {
3791 if (TransitionDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3792 if (abr == NULL || *abr == '\0') return false;
3793 return TransitionDictionaryFromDictionary(pdfDoc, dict, abr, data);
3794}
3795
3796bool isAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3797 return true;
3798}
3799
3800bool AnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfAnnotationDictionary** data) {
3801 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3802 if (value == NULL) { return false; }
3803 if (data == NULL) { return true; }
3804 return mapAnnotationDictionary(*pdfDoc, *value, (SkPdfAnnotationDictionary**)data);
3805}
3806
3807bool AnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfAnnotationDictionary** data) {
3808 if (AnnotationDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3809 if (abr == NULL || *abr == '\0') return false;
3810 return AnnotationDictionaryFromDictionary(pdfDoc, dict, abr, data);
3811}
3812
3813bool isBorderStyleDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3814 return true;
3815}
3816
3817bool BorderStyleDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfBorderStyleDictionary** data) {
3818 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3819 if (value == NULL) { return false; }
3820 if (data == NULL) { return true; }
3821 return mapBorderStyleDictionary(*pdfDoc, *value, (SkPdfBorderStyleDictionary**)data);
3822}
3823
3824bool BorderStyleDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfBorderStyleDictionary** data) {
3825 if (BorderStyleDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3826 if (abr == NULL || *abr == '\0') return false;
3827 return BorderStyleDictionaryFromDictionary(pdfDoc, dict, abr, data);
3828}
3829
3830bool isAppearanceDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3831 return true;
3832}
3833
3834bool AppearanceDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfAppearanceDictionary** data) {
3835 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3836 if (value == NULL) { return false; }
3837 if (data == NULL) { return true; }
3838 return mapAppearanceDictionary(*pdfDoc, *value, (SkPdfAppearanceDictionary**)data);
3839}
3840
3841bool AppearanceDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfAppearanceDictionary** data) {
3842 if (AppearanceDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3843 if (abr == NULL || *abr == '\0') return false;
3844 return AppearanceDictionaryFromDictionary(pdfDoc, dict, abr, data);
3845}
3846
3847bool isTextAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3848 return true;
3849}
3850
3851bool TextAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfTextAnnotationDictionary** data) {
3852 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3853 if (value == NULL) { return false; }
3854 if (data == NULL) { return true; }
3855 return mapTextAnnotationDictionary(*pdfDoc, *value, (SkPdfTextAnnotationDictionary**)data);
3856}
3857
3858bool TextAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfTextAnnotationDictionary** data) {
3859 if (TextAnnotationDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3860 if (abr == NULL || *abr == '\0') return false;
3861 return TextAnnotationDictionaryFromDictionary(pdfDoc, dict, abr, data);
3862}
3863
3864bool isALinkAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3865 return true;
3866}
3867
3868bool ALinkAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfALinkAnnotationDictionary** data) {
3869 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3870 if (value == NULL) { return false; }
3871 if (data == NULL) { return true; }
3872 return mapALinkAnnotationDictionary(*pdfDoc, *value, (SkPdfALinkAnnotationDictionary**)data);
3873}
3874
3875bool ALinkAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfALinkAnnotationDictionary** data) {
3876 if (ALinkAnnotationDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3877 if (abr == NULL || *abr == '\0') return false;
3878 return ALinkAnnotationDictionaryFromDictionary(pdfDoc, dict, abr, data);
3879}
3880
3881bool isFreeTextAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3882 return true;
3883}
3884
3885bool FreeTextAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfFreeTextAnnotationDictionary** data) {
3886 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3887 if (value == NULL) { return false; }
3888 if (data == NULL) { return true; }
3889 return mapFreeTextAnnotationDictionary(*pdfDoc, *value, (SkPdfFreeTextAnnotationDictionary**)data);
3890}
3891
3892bool FreeTextAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfFreeTextAnnotationDictionary** data) {
3893 if (FreeTextAnnotationDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3894 if (abr == NULL || *abr == '\0') return false;
3895 return FreeTextAnnotationDictionaryFromDictionary(pdfDoc, dict, abr, data);
3896}
3897
3898bool isLineAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3899 return true;
3900}
3901
3902bool LineAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfLineAnnotationDictionary** data) {
3903 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3904 if (value == NULL) { return false; }
3905 if (data == NULL) { return true; }
3906 return mapLineAnnotationDictionary(*pdfDoc, *value, (SkPdfLineAnnotationDictionary**)data);
3907}
3908
3909bool LineAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfLineAnnotationDictionary** data) {
3910 if (LineAnnotationDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3911 if (abr == NULL || *abr == '\0') return false;
3912 return LineAnnotationDictionaryFromDictionary(pdfDoc, dict, abr, data);
3913}
3914
3915bool isSquareOrCircleAnnotation(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3916 return true;
3917}
3918
3919bool SquareOrCircleAnnotationFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfSquareOrCircleAnnotation** data) {
3920 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3921 if (value == NULL) { return false; }
3922 if (data == NULL) { return true; }
3923 return mapSquareOrCircleAnnotation(*pdfDoc, *value, (SkPdfSquareOrCircleAnnotation**)data);
3924}
3925
3926bool SquareOrCircleAnnotationFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfSquareOrCircleAnnotation** data) {
3927 if (SquareOrCircleAnnotationFromDictionary(pdfDoc, dict, key, data)) return true;
3928 if (abr == NULL || *abr == '\0') return false;
3929 return SquareOrCircleAnnotationFromDictionary(pdfDoc, dict, abr, data);
3930}
3931
3932bool isMarkupAnnotationsDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3933 return true;
3934}
3935
3936bool MarkupAnnotationsDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfMarkupAnnotationsDictionary** data) {
3937 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3938 if (value == NULL) { return false; }
3939 if (data == NULL) { return true; }
3940 return mapMarkupAnnotationsDictionary(*pdfDoc, *value, (SkPdfMarkupAnnotationsDictionary**)data);
3941}
3942
3943bool MarkupAnnotationsDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfMarkupAnnotationsDictionary** data) {
3944 if (MarkupAnnotationsDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3945 if (abr == NULL || *abr == '\0') return false;
3946 return MarkupAnnotationsDictionaryFromDictionary(pdfDoc, dict, abr, data);
3947}
3948
3949bool isRubberStampAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3950 return true;
3951}
3952
3953bool RubberStampAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfRubberStampAnnotationDictionary** data) {
3954 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3955 if (value == NULL) { return false; }
3956 if (data == NULL) { return true; }
3957 return mapRubberStampAnnotationDictionary(*pdfDoc, *value, (SkPdfRubberStampAnnotationDictionary**)data);
3958}
3959
3960bool RubberStampAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfRubberStampAnnotationDictionary** data) {
3961 if (RubberStampAnnotationDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3962 if (abr == NULL || *abr == '\0') return false;
3963 return RubberStampAnnotationDictionaryFromDictionary(pdfDoc, dict, abr, data);
3964}
3965
3966bool isInkAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3967 return true;
3968}
3969
3970bool InkAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfInkAnnotationDictionary** data) {
3971 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3972 if (value == NULL) { return false; }
3973 if (data == NULL) { return true; }
3974 return mapInkAnnotationDictionary(*pdfDoc, *value, (SkPdfInkAnnotationDictionary**)data);
3975}
3976
3977bool InkAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfInkAnnotationDictionary** data) {
3978 if (InkAnnotationDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3979 if (abr == NULL || *abr == '\0') return false;
3980 return InkAnnotationDictionaryFromDictionary(pdfDoc, dict, abr, data);
3981}
3982
3983bool isPopUpAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3984 return true;
3985}
3986
3987bool PopUpAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfPopUpAnnotationDictionary** data) {
3988 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3989 if (value == NULL) { return false; }
3990 if (data == NULL) { return true; }
3991 return mapPopUpAnnotationDictionary(*pdfDoc, *value, (SkPdfPopUpAnnotationDictionary**)data);
3992}
3993
3994bool PopUpAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfPopUpAnnotationDictionary** data) {
3995 if (PopUpAnnotationDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3996 if (abr == NULL || *abr == '\0') return false;
3997 return PopUpAnnotationDictionaryFromDictionary(pdfDoc, dict, abr, data);
3998}
3999
4000bool isFileAttachmentAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4001 return true;
4002}
4003
4004bool FileAttachmentAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfFileAttachmentAnnotationDictionary** data) {
4005 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4006 if (value == NULL) { return false; }
4007 if (data == NULL) { return true; }
4008 return mapFileAttachmentAnnotationDictionary(*pdfDoc, *value, (SkPdfFileAttachmentAnnotationDictionary**)data);
4009}
4010
4011bool FileAttachmentAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfFileAttachmentAnnotationDictionary** data) {
4012 if (FileAttachmentAnnotationDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4013 if (abr == NULL || *abr == '\0') return false;
4014 return FileAttachmentAnnotationDictionaryFromDictionary(pdfDoc, dict, abr, data);
4015}
4016
4017bool isSoundAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4018 return true;
4019}
4020
4021bool SoundAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfSoundAnnotationDictionary** data) {
4022 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4023 if (value == NULL) { return false; }
4024 if (data == NULL) { return true; }
4025 return mapSoundAnnotationDictionary(*pdfDoc, *value, (SkPdfSoundAnnotationDictionary**)data);
4026}
4027
4028bool SoundAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfSoundAnnotationDictionary** data) {
4029 if (SoundAnnotationDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4030 if (abr == NULL || *abr == '\0') return false;
4031 return SoundAnnotationDictionaryFromDictionary(pdfDoc, dict, abr, data);
4032}
4033
4034bool isMovieAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4035 return true;
4036}
4037
4038bool MovieAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfMovieAnnotationDictionary** data) {
4039 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4040 if (value == NULL) { return false; }
4041 if (data == NULL) { return true; }
4042 return mapMovieAnnotationDictionary(*pdfDoc, *value, (SkPdfMovieAnnotationDictionary**)data);
4043}
4044
4045bool MovieAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfMovieAnnotationDictionary** data) {
4046 if (MovieAnnotationDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4047 if (abr == NULL || *abr == '\0') return false;
4048 return MovieAnnotationDictionaryFromDictionary(pdfDoc, dict, abr, data);
4049}
4050
4051bool isWidgetAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4052 return true;
4053}
4054
4055bool WidgetAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfWidgetAnnotationDictionary** data) {
4056 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4057 if (value == NULL) { return false; }
4058 if (data == NULL) { return true; }
4059 return mapWidgetAnnotationDictionary(*pdfDoc, *value, (SkPdfWidgetAnnotationDictionary**)data);
4060}
4061
4062bool WidgetAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfWidgetAnnotationDictionary** data) {
4063 if (WidgetAnnotationDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4064 if (abr == NULL || *abr == '\0') return false;
4065 return WidgetAnnotationDictionaryFromDictionary(pdfDoc, dict, abr, data);
4066}
4067
4068bool isActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4069 return true;
4070}
4071
4072bool ActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfActionDictionary** data) {
4073 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4074 if (value == NULL) { return false; }
4075 if (data == NULL) { return true; }
4076 return mapActionDictionary(*pdfDoc, *value, (SkPdfActionDictionary**)data);
4077}
4078
4079bool ActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfActionDictionary** data) {
4080 if (ActionDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4081 if (abr == NULL || *abr == '\0') return false;
4082 return ActionDictionaryFromDictionary(pdfDoc, dict, abr, data);
4083}
4084
4085bool isAnnotationActionsDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4086 return true;
4087}
4088
4089bool AnnotationActionsDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfAnnotationActionsDictionary** data) {
4090 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4091 if (value == NULL) { return false; }
4092 if (data == NULL) { return true; }
4093 return mapAnnotationActionsDictionary(*pdfDoc, *value, (SkPdfAnnotationActionsDictionary**)data);
4094}
4095
4096bool AnnotationActionsDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfAnnotationActionsDictionary** data) {
4097 if (AnnotationActionsDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4098 if (abr == NULL || *abr == '\0') return false;
4099 return AnnotationActionsDictionaryFromDictionary(pdfDoc, dict, abr, data);
4100}
4101
4102bool isPageObjectActionsDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4103 return true;
4104}
4105
4106bool PageObjectActionsDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfPageObjectActionsDictionary** data) {
4107 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4108 if (value == NULL) { return false; }
4109 if (data == NULL) { return true; }
4110 return mapPageObjectActionsDictionary(*pdfDoc, *value, (SkPdfPageObjectActionsDictionary**)data);
4111}
4112
4113bool PageObjectActionsDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfPageObjectActionsDictionary** data) {
4114 if (PageObjectActionsDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4115 if (abr == NULL || *abr == '\0') return false;
4116 return PageObjectActionsDictionaryFromDictionary(pdfDoc, dict, abr, data);
4117}
4118
4119bool isFormFieldActionsDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4120 return true;
4121}
4122
4123bool FormFieldActionsDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfFormFieldActionsDictionary** data) {
4124 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4125 if (value == NULL) { return false; }
4126 if (data == NULL) { return true; }
4127 return mapFormFieldActionsDictionary(*pdfDoc, *value, (SkPdfFormFieldActionsDictionary**)data);
4128}
4129
4130bool FormFieldActionsDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfFormFieldActionsDictionary** data) {
4131 if (FormFieldActionsDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4132 if (abr == NULL || *abr == '\0') return false;
4133 return FormFieldActionsDictionaryFromDictionary(pdfDoc, dict, abr, data);
4134}
4135
4136bool isDocumentCatalogActionsDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4137 return true;
4138}
4139
4140bool DocumentCatalogActionsDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfDocumentCatalogActionsDictionary** data) {
4141 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4142 if (value == NULL) { return false; }
4143 if (data == NULL) { return true; }
4144 return mapDocumentCatalogActionsDictionary(*pdfDoc, *value, (SkPdfDocumentCatalogActionsDictionary**)data);
4145}
4146
4147bool DocumentCatalogActionsDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfDocumentCatalogActionsDictionary** data) {
4148 if (DocumentCatalogActionsDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4149 if (abr == NULL || *abr == '\0') return false;
4150 return DocumentCatalogActionsDictionaryFromDictionary(pdfDoc, dict, abr, data);
4151}
4152
4153bool isGoToActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4154 return true;
4155}
4156
4157bool GoToActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfGoToActionDictionary** data) {
4158 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4159 if (value == NULL) { return false; }
4160 if (data == NULL) { return true; }
4161 return mapGoToActionDictionary(*pdfDoc, *value, (SkPdfGoToActionDictionary**)data);
4162}
4163
4164bool GoToActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfGoToActionDictionary** data) {
4165 if (GoToActionDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4166 if (abr == NULL || *abr == '\0') return false;
4167 return GoToActionDictionaryFromDictionary(pdfDoc, dict, abr, data);
4168}
4169
4170bool isRemoteGoToActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4171 return true;
4172}
4173
4174bool RemoteGoToActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfRemoteGoToActionDictionary** data) {
4175 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4176 if (value == NULL) { return false; }
4177 if (data == NULL) { return true; }
4178 return mapRemoteGoToActionDictionary(*pdfDoc, *value, (SkPdfRemoteGoToActionDictionary**)data);
4179}
4180
4181bool RemoteGoToActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfRemoteGoToActionDictionary** data) {
4182 if (RemoteGoToActionDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4183 if (abr == NULL || *abr == '\0') return false;
4184 return RemoteGoToActionDictionaryFromDictionary(pdfDoc, dict, abr, data);
4185}
4186
4187bool isLaunchActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4188 return true;
4189}
4190
4191bool LaunchActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfLaunchActionDictionary** data) {
4192 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4193 if (value == NULL) { return false; }
4194 if (data == NULL) { return true; }
4195 return mapLaunchActionDictionary(*pdfDoc, *value, (SkPdfLaunchActionDictionary**)data);
4196}
4197
4198bool LaunchActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfLaunchActionDictionary** data) {
4199 if (LaunchActionDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4200 if (abr == NULL || *abr == '\0') return false;
4201 return LaunchActionDictionaryFromDictionary(pdfDoc, dict, abr, data);
4202}
4203
4204bool isWindowsLaunchActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4205 return true;
4206}
4207
4208bool WindowsLaunchActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfWindowsLaunchActionDictionary** data) {
4209 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4210 if (value == NULL) { return false; }
4211 if (data == NULL) { return true; }
4212 return mapWindowsLaunchActionDictionary(*pdfDoc, *value, (SkPdfWindowsLaunchActionDictionary**)data);
4213}
4214
4215bool WindowsLaunchActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfWindowsLaunchActionDictionary** data) {
4216 if (WindowsLaunchActionDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4217 if (abr == NULL || *abr == '\0') return false;
4218 return WindowsLaunchActionDictionaryFromDictionary(pdfDoc, dict, abr, data);
4219}
4220
4221bool isThreadActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4222 return true;
4223}
4224
4225bool ThreadActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfThreadActionDictionary** data) {
4226 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4227 if (value == NULL) { return false; }
4228 if (data == NULL) { return true; }
4229 return mapThreadActionDictionary(*pdfDoc, *value, (SkPdfThreadActionDictionary**)data);
4230}
4231
4232bool ThreadActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfThreadActionDictionary** data) {
4233 if (ThreadActionDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4234 if (abr == NULL || *abr == '\0') return false;
4235 return ThreadActionDictionaryFromDictionary(pdfDoc, dict, abr, data);
4236}
4237
4238bool isURIActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4239 return true;
4240}
4241
4242bool URIActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfURIActionDictionary** data) {
4243 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4244 if (value == NULL) { return false; }
4245 if (data == NULL) { return true; }
4246 return mapURIActionDictionary(*pdfDoc, *value, (SkPdfURIActionDictionary**)data);
4247}
4248
4249bool URIActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfURIActionDictionary** data) {
4250 if (URIActionDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4251 if (abr == NULL || *abr == '\0') return false;
4252 return URIActionDictionaryFromDictionary(pdfDoc, dict, abr, data);
4253}
4254
4255bool isURIDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4256 return true;
4257}
4258
4259bool URIDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfURIDictionary** data) {
4260 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4261 if (value == NULL) { return false; }
4262 if (data == NULL) { return true; }
4263 return mapURIDictionary(*pdfDoc, *value, (SkPdfURIDictionary**)data);
4264}
4265
4266bool URIDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfURIDictionary** data) {
4267 if (URIDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4268 if (abr == NULL || *abr == '\0') return false;
4269 return URIDictionaryFromDictionary(pdfDoc, dict, abr, data);
4270}
4271
4272bool isSoundActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4273 return true;
4274}
4275
4276bool SoundActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfSoundActionDictionary** data) {
4277 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4278 if (value == NULL) { return false; }
4279 if (data == NULL) { return true; }
4280 return mapSoundActionDictionary(*pdfDoc, *value, (SkPdfSoundActionDictionary**)data);
4281}
4282
4283bool SoundActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfSoundActionDictionary** data) {
4284 if (SoundActionDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4285 if (abr == NULL || *abr == '\0') return false;
4286 return SoundActionDictionaryFromDictionary(pdfDoc, dict, abr, data);
4287}
4288
4289bool isMovieActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4290 return true;
4291}
4292
4293bool MovieActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfMovieActionDictionary** data) {
4294 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4295 if (value == NULL) { return false; }
4296 if (data == NULL) { return true; }
4297 return mapMovieActionDictionary(*pdfDoc, *value, (SkPdfMovieActionDictionary**)data);
4298}
4299
4300bool MovieActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfMovieActionDictionary** data) {
4301 if (MovieActionDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4302 if (abr == NULL || *abr == '\0') return false;
4303 return MovieActionDictionaryFromDictionary(pdfDoc, dict, abr, data);
4304}
4305
4306bool isHideActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4307 return true;
4308}
4309
4310bool HideActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfHideActionDictionary** data) {
4311 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4312 if (value == NULL) { return false; }
4313 if (data == NULL) { return true; }
4314 return mapHideActionDictionary(*pdfDoc, *value, (SkPdfHideActionDictionary**)data);
4315}
4316
4317bool HideActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfHideActionDictionary** data) {
4318 if (HideActionDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4319 if (abr == NULL || *abr == '\0') return false;
4320 return HideActionDictionaryFromDictionary(pdfDoc, dict, abr, data);
4321}
4322
4323bool isNamedActionsDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4324 return true;
4325}
4326
4327bool NamedActionsDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfNamedActionsDictionary** data) {
4328 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4329 if (value == NULL) { return false; }
4330 if (data == NULL) { return true; }
4331 return mapNamedActionsDictionary(*pdfDoc, *value, (SkPdfNamedActionsDictionary**)data);
4332}
4333
4334bool NamedActionsDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfNamedActionsDictionary** data) {
4335 if (NamedActionsDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4336 if (abr == NULL || *abr == '\0') return false;
4337 return NamedActionsDictionaryFromDictionary(pdfDoc, dict, abr, data);
4338}
4339
4340bool isInteractiveFormDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4341 return true;
4342}
4343
4344bool InteractiveFormDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfInteractiveFormDictionary** data) {
4345 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4346 if (value == NULL) { return false; }
4347 if (data == NULL) { return true; }
4348 return mapInteractiveFormDictionary(*pdfDoc, *value, (SkPdfInteractiveFormDictionary**)data);
4349}
4350
4351bool InteractiveFormDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfInteractiveFormDictionary** data) {
4352 if (InteractiveFormDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4353 if (abr == NULL || *abr == '\0') return false;
4354 return InteractiveFormDictionaryFromDictionary(pdfDoc, dict, abr, data);
4355}
4356
4357bool isFieldDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4358 return true;
4359}
4360
4361bool FieldDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfFieldDictionary** data) {
4362 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4363 if (value == NULL) { return false; }
4364 if (data == NULL) { return true; }
4365 return mapFieldDictionary(*pdfDoc, *value, (SkPdfFieldDictionary**)data);
4366}
4367
4368bool FieldDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfFieldDictionary** data) {
4369 if (FieldDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4370 if (abr == NULL || *abr == '\0') return false;
4371 return FieldDictionaryFromDictionary(pdfDoc, dict, abr, data);
4372}
4373
4374bool isVariableTextFieldDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4375 return true;
4376}
4377
4378bool VariableTextFieldDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfVariableTextFieldDictionary** data) {
4379 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4380 if (value == NULL) { return false; }
4381 if (data == NULL) { return true; }
4382 return mapVariableTextFieldDictionary(*pdfDoc, *value, (SkPdfVariableTextFieldDictionary**)data);
4383}
4384
4385bool VariableTextFieldDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfVariableTextFieldDictionary** data) {
4386 if (VariableTextFieldDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4387 if (abr == NULL || *abr == '\0') return false;
4388 return VariableTextFieldDictionaryFromDictionary(pdfDoc, dict, abr, data);
4389}
4390
4391bool isAppearanceCharacteristicsDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4392 return true;
4393}
4394
4395bool AppearanceCharacteristicsDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfAppearanceCharacteristicsDictionary** data) {
4396 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4397 if (value == NULL) { return false; }
4398 if (data == NULL) { return true; }
4399 return mapAppearanceCharacteristicsDictionary(*pdfDoc, *value, (SkPdfAppearanceCharacteristicsDictionary**)data);
4400}
4401
4402bool AppearanceCharacteristicsDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfAppearanceCharacteristicsDictionary** data) {
4403 if (AppearanceCharacteristicsDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4404 if (abr == NULL || *abr == '\0') return false;
4405 return AppearanceCharacteristicsDictionaryFromDictionary(pdfDoc, dict, abr, data);
4406}
4407
4408bool isCheckboxFieldDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4409 return true;
4410}
4411
4412bool CheckboxFieldDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfCheckboxFieldDictionary** data) {
4413 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4414 if (value == NULL) { return false; }
4415 if (data == NULL) { return true; }
4416 return mapCheckboxFieldDictionary(*pdfDoc, *value, (SkPdfCheckboxFieldDictionary**)data);
4417}
4418
4419bool CheckboxFieldDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfCheckboxFieldDictionary** data) {
4420 if (CheckboxFieldDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4421 if (abr == NULL || *abr == '\0') return false;
4422 return CheckboxFieldDictionaryFromDictionary(pdfDoc, dict, abr, data);
4423}
4424
4425bool isRadioButtonFieldDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4426 return true;
4427}
4428
4429bool RadioButtonFieldDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfRadioButtonFieldDictionary** data) {
4430 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4431 if (value == NULL) { return false; }
4432 if (data == NULL) { return true; }
4433 return mapRadioButtonFieldDictionary(*pdfDoc, *value, (SkPdfRadioButtonFieldDictionary**)data);
4434}
4435
4436bool RadioButtonFieldDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfRadioButtonFieldDictionary** data) {
4437 if (RadioButtonFieldDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4438 if (abr == NULL || *abr == '\0') return false;
4439 return RadioButtonFieldDictionaryFromDictionary(pdfDoc, dict, abr, data);
4440}
4441
4442bool isTextFieldDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4443 return true;
4444}
4445
4446bool TextFieldDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfTextFieldDictionary** data) {
4447 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4448 if (value == NULL) { return false; }
4449 if (data == NULL) { return true; }
4450 return mapTextFieldDictionary(*pdfDoc, *value, (SkPdfTextFieldDictionary**)data);
4451}
4452
4453bool TextFieldDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfTextFieldDictionary** data) {
4454 if (TextFieldDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4455 if (abr == NULL || *abr == '\0') return false;
4456 return TextFieldDictionaryFromDictionary(pdfDoc, dict, abr, data);
4457}
4458
4459bool isChoiceFieldDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4460 return true;
4461}
4462
4463bool ChoiceFieldDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfChoiceFieldDictionary** data) {
4464 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4465 if (value == NULL) { return false; }
4466 if (data == NULL) { return true; }
4467 return mapChoiceFieldDictionary(*pdfDoc, *value, (SkPdfChoiceFieldDictionary**)data);
4468}
4469
4470bool ChoiceFieldDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfChoiceFieldDictionary** data) {
4471 if (ChoiceFieldDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4472 if (abr == NULL || *abr == '\0') return false;
4473 return ChoiceFieldDictionaryFromDictionary(pdfDoc, dict, abr, data);
4474}
4475
4476bool isSignatureDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4477 return true;
4478}
4479
4480bool SignatureDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfSignatureDictionary** data) {
4481 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4482 if (value == NULL) { return false; }
4483 if (data == NULL) { return true; }
4484 return mapSignatureDictionary(*pdfDoc, *value, (SkPdfSignatureDictionary**)data);
4485}
4486
4487bool SignatureDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfSignatureDictionary** data) {
4488 if (SignatureDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4489 if (abr == NULL || *abr == '\0') return false;
4490 return SignatureDictionaryFromDictionary(pdfDoc, dict, abr, data);
4491}
4492
4493bool isSubmitFormActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4494 return true;
4495}
4496
4497bool SubmitFormActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfSubmitFormActionDictionary** data) {
4498 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4499 if (value == NULL) { return false; }
4500 if (data == NULL) { return true; }
4501 return mapSubmitFormActionDictionary(*pdfDoc, *value, (SkPdfSubmitFormActionDictionary**)data);
4502}
4503
4504bool SubmitFormActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfSubmitFormActionDictionary** data) {
4505 if (SubmitFormActionDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4506 if (abr == NULL || *abr == '\0') return false;
4507 return SubmitFormActionDictionaryFromDictionary(pdfDoc, dict, abr, data);
4508}
4509
4510bool isResetFormActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4511 return true;
4512}
4513
4514bool ResetFormActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfResetFormActionDictionary** data) {
4515 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4516 if (value == NULL) { return false; }
4517 if (data == NULL) { return true; }
4518 return mapResetFormActionDictionary(*pdfDoc, *value, (SkPdfResetFormActionDictionary**)data);
4519}
4520
4521bool ResetFormActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfResetFormActionDictionary** data) {
4522 if (ResetFormActionDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4523 if (abr == NULL || *abr == '\0') return false;
4524 return ResetFormActionDictionaryFromDictionary(pdfDoc, dict, abr, data);
4525}
4526
4527bool isImportDataActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4528 return true;
4529}
4530
4531bool ImportDataActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfImportDataActionDictionary** data) {
4532 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4533 if (value == NULL) { return false; }
4534 if (data == NULL) { return true; }
4535 return mapImportDataActionDictionary(*pdfDoc, *value, (SkPdfImportDataActionDictionary**)data);
4536}
4537
4538bool ImportDataActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfImportDataActionDictionary** data) {
4539 if (ImportDataActionDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4540 if (abr == NULL || *abr == '\0') return false;
4541 return ImportDataActionDictionaryFromDictionary(pdfDoc, dict, abr, data);
4542}
4543
4544bool isJavascriptActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4545 return true;
4546}
4547
4548bool JavascriptActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfJavascriptActionDictionary** data) {
4549 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4550 if (value == NULL) { return false; }
4551 if (data == NULL) { return true; }
4552 return mapJavascriptActionDictionary(*pdfDoc, *value, (SkPdfJavascriptActionDictionary**)data);
4553}
4554
4555bool JavascriptActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfJavascriptActionDictionary** data) {
4556 if (JavascriptActionDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4557 if (abr == NULL || *abr == '\0') return false;
4558 return JavascriptActionDictionaryFromDictionary(pdfDoc, dict, abr, data);
4559}
4560
4561bool isFDFTrailerDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4562 return true;
4563}
4564
4565bool FDFTrailerDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfFDFTrailerDictionary** data) {
4566 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4567 if (value == NULL) { return false; }
4568 if (data == NULL) { return true; }
4569 return mapFDFTrailerDictionary(*pdfDoc, *value, (SkPdfFDFTrailerDictionary**)data);
4570}
4571
4572bool FDFTrailerDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfFDFTrailerDictionary** data) {
4573 if (FDFTrailerDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4574 if (abr == NULL || *abr == '\0') return false;
4575 return FDFTrailerDictionaryFromDictionary(pdfDoc, dict, abr, data);
4576}
4577
4578bool isFDFCatalogDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4579 return true;
4580}
4581
4582bool FDFCatalogDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfFDFCatalogDictionary** data) {
4583 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4584 if (value == NULL) { return false; }
4585 if (data == NULL) { return true; }
4586 return mapFDFCatalogDictionary(*pdfDoc, *value, (SkPdfFDFCatalogDictionary**)data);
4587}
4588
4589bool FDFCatalogDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfFDFCatalogDictionary** data) {
4590 if (FDFCatalogDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4591 if (abr == NULL || *abr == '\0') return false;
4592 return FDFCatalogDictionaryFromDictionary(pdfDoc, dict, abr, data);
4593}
4594
4595bool isFDFDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4596 return true;
4597}
4598
4599bool FDFDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfFDFDictionary** data) {
4600 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4601 if (value == NULL) { return false; }
4602 if (data == NULL) { return true; }
4603 return mapFDFDictionary(*pdfDoc, *value, (SkPdfFDFDictionary**)data);
4604}
4605
4606bool FDFDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfFDFDictionary** data) {
4607 if (FDFDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4608 if (abr == NULL || *abr == '\0') return false;
4609 return FDFDictionaryFromDictionary(pdfDoc, dict, abr, data);
4610}
4611
4612bool isEncryptedEmbeddedFileStreamDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4613 return true;
4614}
4615
4616bool EncryptedEmbeddedFileStreamDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfEncryptedEmbeddedFileStreamDictionary** data) {
4617 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4618 if (value == NULL) { return false; }
4619 if (data == NULL) { return true; }
4620 return mapEncryptedEmbeddedFileStreamDictionary(*pdfDoc, *value, (SkPdfEncryptedEmbeddedFileStreamDictionary**)data);
4621}
4622
4623bool EncryptedEmbeddedFileStreamDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfEncryptedEmbeddedFileStreamDictionary** data) {
4624 if (EncryptedEmbeddedFileStreamDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4625 if (abr == NULL || *abr == '\0') return false;
4626 return EncryptedEmbeddedFileStreamDictionaryFromDictionary(pdfDoc, dict, abr, data);
4627}
4628
4629bool isJavascriptDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4630 return true;
4631}
4632
4633bool JavascriptDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfJavascriptDictionary** data) {
4634 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4635 if (value == NULL) { return false; }
4636 if (data == NULL) { return true; }
4637 return mapJavascriptDictionary(*pdfDoc, *value, (SkPdfJavascriptDictionary**)data);
4638}
4639
4640bool JavascriptDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfJavascriptDictionary** data) {
4641 if (JavascriptDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4642 if (abr == NULL || *abr == '\0') return false;
4643 return JavascriptDictionaryFromDictionary(pdfDoc, dict, abr, data);
4644}
4645
4646bool isFDFFieldDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4647 return true;
4648}
4649
4650bool FDFFieldDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfFDFFieldDictionary** data) {
4651 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4652 if (value == NULL) { return false; }
4653 if (data == NULL) { return true; }
4654 return mapFDFFieldDictionary(*pdfDoc, *value, (SkPdfFDFFieldDictionary**)data);
4655}
4656
4657bool FDFFieldDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfFDFFieldDictionary** data) {
4658 if (FDFFieldDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4659 if (abr == NULL || *abr == '\0') return false;
4660 return FDFFieldDictionaryFromDictionary(pdfDoc, dict, abr, data);
4661}
4662
4663bool isIconFitDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4664 return true;
4665}
4666
4667bool IconFitDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfIconFitDictionary** data) {
4668 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4669 if (value == NULL) { return false; }
4670 if (data == NULL) { return true; }
4671 return mapIconFitDictionary(*pdfDoc, *value, (SkPdfIconFitDictionary**)data);
4672}
4673
4674bool IconFitDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfIconFitDictionary** data) {
4675 if (IconFitDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4676 if (abr == NULL || *abr == '\0') return false;
4677 return IconFitDictionaryFromDictionary(pdfDoc, dict, abr, data);
4678}
4679
4680bool isFDFPageDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4681 return true;
4682}
4683
4684bool FDFPageDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfFDFPageDictionary** data) {
4685 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4686 if (value == NULL) { return false; }
4687 if (data == NULL) { return true; }
4688 return mapFDFPageDictionary(*pdfDoc, *value, (SkPdfFDFPageDictionary**)data);
4689}
4690
4691bool FDFPageDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfFDFPageDictionary** data) {
4692 if (FDFPageDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4693 if (abr == NULL || *abr == '\0') return false;
4694 return FDFPageDictionaryFromDictionary(pdfDoc, dict, abr, data);
4695}
4696
4697bool isFDFTemplateDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4698 return true;
4699}
4700
4701bool FDFTemplateDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfFDFTemplateDictionary** data) {
4702 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4703 if (value == NULL) { return false; }
4704 if (data == NULL) { return true; }
4705 return mapFDFTemplateDictionary(*pdfDoc, *value, (SkPdfFDFTemplateDictionary**)data);
4706}
4707
4708bool FDFTemplateDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfFDFTemplateDictionary** data) {
4709 if (FDFTemplateDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4710 if (abr == NULL || *abr == '\0') return false;
4711 return FDFTemplateDictionaryFromDictionary(pdfDoc, dict, abr, data);
4712}
4713
4714bool isFDFNamedPageReferenceDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4715 return true;
4716}
4717
4718bool FDFNamedPageReferenceDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfFDFNamedPageReferenceDictionary** data) {
4719 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4720 if (value == NULL) { return false; }
4721 if (data == NULL) { return true; }
4722 return mapFDFNamedPageReferenceDictionary(*pdfDoc, *value, (SkPdfFDFNamedPageReferenceDictionary**)data);
4723}
4724
4725bool FDFNamedPageReferenceDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfFDFNamedPageReferenceDictionary** data) {
4726 if (FDFNamedPageReferenceDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4727 if (abr == NULL || *abr == '\0') return false;
4728 return FDFNamedPageReferenceDictionaryFromDictionary(pdfDoc, dict, abr, data);
4729}
4730
4731bool isFDFFileAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4732 return true;
4733}
4734
4735bool FDFFileAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfFDFFileAnnotationDictionary** data) {
4736 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4737 if (value == NULL) { return false; }
4738 if (data == NULL) { return true; }
4739 return mapFDFFileAnnotationDictionary(*pdfDoc, *value, (SkPdfFDFFileAnnotationDictionary**)data);
4740}
4741
4742bool FDFFileAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfFDFFileAnnotationDictionary** data) {
4743 if (FDFFileAnnotationDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4744 if (abr == NULL || *abr == '\0') return false;
4745 return FDFFileAnnotationDictionaryFromDictionary(pdfDoc, dict, abr, data);
4746}
4747
4748bool isSoundObjectDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4749 return true;
4750}
4751
4752bool SoundObjectDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfSoundObjectDictionary** data) {
4753 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4754 if (value == NULL) { return false; }
4755 if (data == NULL) { return true; }
4756 return mapSoundObjectDictionary(*pdfDoc, *value, (SkPdfSoundObjectDictionary**)data);
4757}
4758
4759bool SoundObjectDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfSoundObjectDictionary** data) {
4760 if (SoundObjectDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4761 if (abr == NULL || *abr == '\0') return false;
4762 return SoundObjectDictionaryFromDictionary(pdfDoc, dict, abr, data);
4763}
4764
4765bool isMovieDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4766 return true;
4767}
4768
4769bool MovieDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfMovieDictionary** data) {
4770 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4771 if (value == NULL) { return false; }
4772 if (data == NULL) { return true; }
4773 return mapMovieDictionary(*pdfDoc, *value, (SkPdfMovieDictionary**)data);
4774}
4775
4776bool MovieDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfMovieDictionary** data) {
4777 if (MovieDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4778 if (abr == NULL || *abr == '\0') return false;
4779 return MovieDictionaryFromDictionary(pdfDoc, dict, abr, data);
4780}
4781
4782bool isMovieActivationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4783 return true;
4784}
4785
4786bool MovieActivationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfMovieActivationDictionary** data) {
4787 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4788 if (value == NULL) { return false; }
4789 if (data == NULL) { return true; }
4790 return mapMovieActivationDictionary(*pdfDoc, *value, (SkPdfMovieActivationDictionary**)data);
4791}
4792
4793bool MovieActivationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfMovieActivationDictionary** data) {
4794 if (MovieActivationDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4795 if (abr == NULL || *abr == '\0') return false;
4796 return MovieActivationDictionaryFromDictionary(pdfDoc, dict, abr, data);
4797}
4798
4799bool isDocumentInformationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4800 return true;
4801}
4802
4803bool DocumentInformationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfDocumentInformationDictionary** data) {
4804 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4805 if (value == NULL) { return false; }
4806 if (data == NULL) { return true; }
4807 return mapDocumentInformationDictionary(*pdfDoc, *value, (SkPdfDocumentInformationDictionary**)data);
4808}
4809
4810bool DocumentInformationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfDocumentInformationDictionary** data) {
4811 if (DocumentInformationDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4812 if (abr == NULL || *abr == '\0') return false;
4813 return DocumentInformationDictionaryFromDictionary(pdfDoc, dict, abr, data);
4814}
4815
4816bool isMetadataStreamDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4817 return true;
4818}
4819
4820bool MetadataStreamDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfMetadataStreamDictionary** data) {
4821 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4822 if (value == NULL) { return false; }
4823 if (data == NULL) { return true; }
4824 return mapMetadataStreamDictionary(*pdfDoc, *value, (SkPdfMetadataStreamDictionary**)data);
4825}
4826
4827bool MetadataStreamDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfMetadataStreamDictionary** data) {
4828 if (MetadataStreamDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4829 if (abr == NULL || *abr == '\0') return false;
4830 return MetadataStreamDictionaryFromDictionary(pdfDoc, dict, abr, data);
4831}
4832
4833bool isComponentsWithMetadataDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4834 return true;
4835}
4836
4837bool ComponentsWithMetadataDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfComponentsWithMetadataDictionary** data) {
4838 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4839 if (value == NULL) { return false; }
4840 if (data == NULL) { return true; }
4841 return mapComponentsWithMetadataDictionary(*pdfDoc, *value, (SkPdfComponentsWithMetadataDictionary**)data);
4842}
4843
4844bool ComponentsWithMetadataDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfComponentsWithMetadataDictionary** data) {
4845 if (ComponentsWithMetadataDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4846 if (abr == NULL || *abr == '\0') return false;
4847 return ComponentsWithMetadataDictionaryFromDictionary(pdfDoc, dict, abr, data);
4848}
4849
4850bool isPagePieceDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4851 return true;
4852}
4853
4854bool PagePieceDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfPagePieceDictionary** data) {
4855 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4856 if (value == NULL) { return false; }
4857 if (data == NULL) { return true; }
4858 return mapPagePieceDictionary(*pdfDoc, *value, (SkPdfPagePieceDictionary**)data);
4859}
4860
4861bool PagePieceDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfPagePieceDictionary** data) {
4862 if (PagePieceDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4863 if (abr == NULL || *abr == '\0') return false;
4864 return PagePieceDictionaryFromDictionary(pdfDoc, dict, abr, data);
4865}
4866
4867bool isApplicationDataDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4868 return true;
4869}
4870
4871bool ApplicationDataDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfApplicationDataDictionary** data) {
4872 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4873 if (value == NULL) { return false; }
4874 if (data == NULL) { return true; }
4875 return mapApplicationDataDictionary(*pdfDoc, *value, (SkPdfApplicationDataDictionary**)data);
4876}
4877
4878bool ApplicationDataDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfApplicationDataDictionary** data) {
4879 if (ApplicationDataDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4880 if (abr == NULL || *abr == '\0') return false;
4881 return ApplicationDataDictionaryFromDictionary(pdfDoc, dict, abr, data);
4882}
4883
4884bool isStructureTreeRootDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4885 return true;
4886}
4887
4888bool StructureTreeRootDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfStructureTreeRootDictionary** data) {
4889 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4890 if (value == NULL) { return false; }
4891 if (data == NULL) { return true; }
4892 return mapStructureTreeRootDictionary(*pdfDoc, *value, (SkPdfStructureTreeRootDictionary**)data);
4893}
4894
4895bool StructureTreeRootDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfStructureTreeRootDictionary** data) {
4896 if (StructureTreeRootDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4897 if (abr == NULL || *abr == '\0') return false;
4898 return StructureTreeRootDictionaryFromDictionary(pdfDoc, dict, abr, data);
4899}
4900
4901bool isStructureElementDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4902 return true;
4903}
4904
4905bool StructureElementDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfStructureElementDictionary** data) {
4906 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4907 if (value == NULL) { return false; }
4908 if (data == NULL) { return true; }
4909 return mapStructureElementDictionary(*pdfDoc, *value, (SkPdfStructureElementDictionary**)data);
4910}
4911
4912bool StructureElementDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfStructureElementDictionary** data) {
4913 if (StructureElementDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4914 if (abr == NULL || *abr == '\0') return false;
4915 return StructureElementDictionaryFromDictionary(pdfDoc, dict, abr, data);
4916}
4917
4918bool isMarkedContentReferenceDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4919 return true;
4920}
4921
4922bool MarkedContentReferenceDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfMarkedContentReferenceDictionary** data) {
4923 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4924 if (value == NULL) { return false; }
4925 if (data == NULL) { return true; }
4926 return mapMarkedContentReferenceDictionary(*pdfDoc, *value, (SkPdfMarkedContentReferenceDictionary**)data);
4927}
4928
4929bool MarkedContentReferenceDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfMarkedContentReferenceDictionary** data) {
4930 if (MarkedContentReferenceDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4931 if (abr == NULL || *abr == '\0') return false;
4932 return MarkedContentReferenceDictionaryFromDictionary(pdfDoc, dict, abr, data);
4933}
4934
4935bool isObjectReferenceDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4936 return true;
4937}
4938
4939bool ObjectReferenceDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfObjectReferenceDictionary** data) {
4940 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4941 if (value == NULL) { return false; }
4942 if (data == NULL) { return true; }
4943 return mapObjectReferenceDictionary(*pdfDoc, *value, (SkPdfObjectReferenceDictionary**)data);
4944}
4945
4946bool ObjectReferenceDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfObjectReferenceDictionary** data) {
4947 if (ObjectReferenceDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4948 if (abr == NULL || *abr == '\0') return false;
4949 return ObjectReferenceDictionaryFromDictionary(pdfDoc, dict, abr, data);
4950}
4951
4952bool isStructureElementAccessDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4953 return true;
4954}
4955
4956bool StructureElementAccessDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfStructureElementAccessDictionary** data) {
4957 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4958 if (value == NULL) { return false; }
4959 if (data == NULL) { return true; }
4960 return mapStructureElementAccessDictionary(*pdfDoc, *value, (SkPdfStructureElementAccessDictionary**)data);
4961}
4962
4963bool StructureElementAccessDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfStructureElementAccessDictionary** data) {
4964 if (StructureElementAccessDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4965 if (abr == NULL || *abr == '\0') return false;
4966 return StructureElementAccessDictionaryFromDictionary(pdfDoc, dict, abr, data);
4967}
4968
4969bool isAttributeObjectDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4970 return true;
4971}
4972
4973bool AttributeObjectDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfAttributeObjectDictionary** data) {
4974 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4975 if (value == NULL) { return false; }
4976 if (data == NULL) { return true; }
4977 return mapAttributeObjectDictionary(*pdfDoc, *value, (SkPdfAttributeObjectDictionary**)data);
4978}
4979
4980bool AttributeObjectDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfAttributeObjectDictionary** data) {
4981 if (AttributeObjectDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4982 if (abr == NULL || *abr == '\0') return false;
4983 return AttributeObjectDictionaryFromDictionary(pdfDoc, dict, abr, data);
4984}
4985
4986bool isMarkInformationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4987 return true;
4988}
4989
4990bool MarkInformationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfMarkInformationDictionary** data) {
4991 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4992 if (value == NULL) { return false; }
4993 if (data == NULL) { return true; }
4994 return mapMarkInformationDictionary(*pdfDoc, *value, (SkPdfMarkInformationDictionary**)data);
4995}
4996
4997bool MarkInformationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfMarkInformationDictionary** data) {
4998 if (MarkInformationDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4999 if (abr == NULL || *abr == '\0') return false;
5000 return MarkInformationDictionaryFromDictionary(pdfDoc, dict, abr, data);
5001}
5002
5003bool isArtifactsDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
5004 return true;
5005}
5006
5007bool ArtifactsDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfArtifactsDictionary** data) {
5008 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
5009 if (value == NULL) { return false; }
5010 if (data == NULL) { return true; }
5011 return mapArtifactsDictionary(*pdfDoc, *value, (SkPdfArtifactsDictionary**)data);
5012}
5013
5014bool ArtifactsDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfArtifactsDictionary** data) {
5015 if (ArtifactsDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
5016 if (abr == NULL || *abr == '\0') return false;
5017 return ArtifactsDictionaryFromDictionary(pdfDoc, dict, abr, data);
5018}
5019
5020bool isStandardStructureDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
5021 return true;
5022}
5023
5024bool StandardStructureDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfStandardStructureDictionary** data) {
5025 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
5026 if (value == NULL) { return false; }
5027 if (data == NULL) { return true; }
5028 return mapStandardStructureDictionary(*pdfDoc, *value, (SkPdfStandardStructureDictionary**)data);
5029}
5030
5031bool StandardStructureDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfStandardStructureDictionary** data) {
5032 if (StandardStructureDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
5033 if (abr == NULL || *abr == '\0') return false;
5034 return StandardStructureDictionaryFromDictionary(pdfDoc, dict, abr, data);
5035}
5036
5037bool isBlockLevelStructureElementsDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
5038 return true;
5039}
5040
5041bool BlockLevelStructureElementsDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfBlockLevelStructureElementsDictionary** data) {
5042 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
5043 if (value == NULL) { return false; }
5044 if (data == NULL) { return true; }
5045 return mapBlockLevelStructureElementsDictionary(*pdfDoc, *value, (SkPdfBlockLevelStructureElementsDictionary**)data);
5046}
5047
5048bool BlockLevelStructureElementsDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfBlockLevelStructureElementsDictionary** data) {
5049 if (BlockLevelStructureElementsDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
5050 if (abr == NULL || *abr == '\0') return false;
5051 return BlockLevelStructureElementsDictionaryFromDictionary(pdfDoc, dict, abr, data);
5052}
5053
5054bool isInlineLevelStructureElementsDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
5055 return true;
5056}
5057
5058bool InlineLevelStructureElementsDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfInlineLevelStructureElementsDictionary** data) {
5059 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
5060 if (value == NULL) { return false; }
5061 if (data == NULL) { return true; }
5062 return mapInlineLevelStructureElementsDictionary(*pdfDoc, *value, (SkPdfInlineLevelStructureElementsDictionary**)data);
5063}
5064
5065bool InlineLevelStructureElementsDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfInlineLevelStructureElementsDictionary** data) {
5066 if (InlineLevelStructureElementsDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
5067 if (abr == NULL || *abr == '\0') return false;
5068 return InlineLevelStructureElementsDictionaryFromDictionary(pdfDoc, dict, abr, data);
5069}
5070
5071bool isListAttributeDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
5072 return true;
5073}
5074
5075bool ListAttributeDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfListAttributeDictionary** data) {
5076 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
5077 if (value == NULL) { return false; }
5078 if (data == NULL) { return true; }
5079 return mapListAttributeDictionary(*pdfDoc, *value, (SkPdfListAttributeDictionary**)data);
5080}
5081
5082bool ListAttributeDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfListAttributeDictionary** data) {
5083 if (ListAttributeDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
5084 if (abr == NULL || *abr == '\0') return false;
5085 return ListAttributeDictionaryFromDictionary(pdfDoc, dict, abr, data);
5086}
5087
5088bool isTableAttributesDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
5089 return true;
5090}
5091
5092bool TableAttributesDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfTableAttributesDictionary** data) {
5093 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
5094 if (value == NULL) { return false; }
5095 if (data == NULL) { return true; }
5096 return mapTableAttributesDictionary(*pdfDoc, *value, (SkPdfTableAttributesDictionary**)data);
5097}
5098
5099bool TableAttributesDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfTableAttributesDictionary** data) {
5100 if (TableAttributesDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
5101 if (abr == NULL || *abr == '\0') return false;
5102 return TableAttributesDictionaryFromDictionary(pdfDoc, dict, abr, data);
5103}
5104
5105bool isWebCaptureInformationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
5106 return true;
5107}
5108
5109bool WebCaptureInformationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfWebCaptureInformationDictionary** data) {
5110 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
5111 if (value == NULL) { return false; }
5112 if (data == NULL) { return true; }
5113 return mapWebCaptureInformationDictionary(*pdfDoc, *value, (SkPdfWebCaptureInformationDictionary**)data);
5114}
5115
5116bool WebCaptureInformationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfWebCaptureInformationDictionary** data) {
5117 if (WebCaptureInformationDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
5118 if (abr == NULL || *abr == '\0') return false;
5119 return WebCaptureInformationDictionaryFromDictionary(pdfDoc, dict, abr, data);
5120}
5121
5122bool isWebCaptureDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
5123 return true;
5124}
5125
5126bool WebCaptureDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfWebCaptureDictionary** data) {
5127 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
5128 if (value == NULL) { return false; }
5129 if (data == NULL) { return true; }
5130 return mapWebCaptureDictionary(*pdfDoc, *value, (SkPdfWebCaptureDictionary**)data);
5131}
5132
5133bool WebCaptureDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfWebCaptureDictionary** data) {
5134 if (WebCaptureDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
5135 if (abr == NULL || *abr == '\0') return false;
5136 return WebCaptureDictionaryFromDictionary(pdfDoc, dict, abr, data);
5137}
5138
5139bool isWebCapturePageSetDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
5140 return true;
5141}
5142
5143bool WebCapturePageSetDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfWebCapturePageSetDictionary** data) {
5144 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
5145 if (value == NULL) { return false; }
5146 if (data == NULL) { return true; }
5147 return mapWebCapturePageSetDictionary(*pdfDoc, *value, (SkPdfWebCapturePageSetDictionary**)data);
5148}
5149
5150bool WebCapturePageSetDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfWebCapturePageSetDictionary** data) {
5151 if (WebCapturePageSetDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
5152 if (abr == NULL || *abr == '\0') return false;
5153 return WebCapturePageSetDictionaryFromDictionary(pdfDoc, dict, abr, data);
5154}
5155
5156bool isWebCaptureImageSetDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
5157 return true;
5158}
5159
5160bool WebCaptureImageSetDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfWebCaptureImageSetDictionary** data) {
5161 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
5162 if (value == NULL) { return false; }
5163 if (data == NULL) { return true; }
5164 return mapWebCaptureImageSetDictionary(*pdfDoc, *value, (SkPdfWebCaptureImageSetDictionary**)data);
5165}
5166
5167bool WebCaptureImageSetDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfWebCaptureImageSetDictionary** data) {
5168 if (WebCaptureImageSetDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
5169 if (abr == NULL || *abr == '\0') return false;
5170 return WebCaptureImageSetDictionaryFromDictionary(pdfDoc, dict, abr, data);
5171}
5172
5173bool isSourceInformationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
5174 return true;
5175}
5176
5177bool SourceInformationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfSourceInformationDictionary** data) {
5178 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
5179 if (value == NULL) { return false; }
5180 if (data == NULL) { return true; }
5181 return mapSourceInformationDictionary(*pdfDoc, *value, (SkPdfSourceInformationDictionary**)data);
5182}
5183
5184bool SourceInformationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfSourceInformationDictionary** data) {
5185 if (SourceInformationDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
5186 if (abr == NULL || *abr == '\0') return false;
5187 return SourceInformationDictionaryFromDictionary(pdfDoc, dict, abr, data);
5188}
5189
5190bool isURLAliasDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
5191 return true;
5192}
5193
5194bool URLAliasDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfURLAliasDictionary** data) {
5195 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
5196 if (value == NULL) { return false; }
5197 if (data == NULL) { return true; }
5198 return mapURLAliasDictionary(*pdfDoc, *value, (SkPdfURLAliasDictionary**)data);
5199}
5200
5201bool URLAliasDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfURLAliasDictionary** data) {
5202 if (URLAliasDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
5203 if (abr == NULL || *abr == '\0') return false;
5204 return URLAliasDictionaryFromDictionary(pdfDoc, dict, abr, data);
5205}
5206
5207bool isWebCaptureCommandDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
5208 return true;
5209}
5210
5211bool WebCaptureCommandDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfWebCaptureCommandDictionary** data) {
5212 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
5213 if (value == NULL) { return false; }
5214 if (data == NULL) { return true; }
5215 return mapWebCaptureCommandDictionary(*pdfDoc, *value, (SkPdfWebCaptureCommandDictionary**)data);
5216}
5217
5218bool WebCaptureCommandDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfWebCaptureCommandDictionary** data) {
5219 if (WebCaptureCommandDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
5220 if (abr == NULL || *abr == '\0') return false;
5221 return WebCaptureCommandDictionaryFromDictionary(pdfDoc, dict, abr, data);
5222}
5223
5224bool isWebCaptureCommandSettingsDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
5225 return true;
5226}
5227
5228bool WebCaptureCommandSettingsDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfWebCaptureCommandSettingsDictionary** data) {
5229 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
5230 if (value == NULL) { return false; }
5231 if (data == NULL) { return true; }
5232 return mapWebCaptureCommandSettingsDictionary(*pdfDoc, *value, (SkPdfWebCaptureCommandSettingsDictionary**)data);
5233}
5234
5235bool WebCaptureCommandSettingsDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfWebCaptureCommandSettingsDictionary** data) {
5236 if (WebCaptureCommandSettingsDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
5237 if (abr == NULL || *abr == '\0') return false;
5238 return WebCaptureCommandSettingsDictionaryFromDictionary(pdfDoc, dict, abr, data);
5239}
5240
5241bool isBoxColorInformationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
5242 return true;
5243}
5244
5245bool BoxColorInformationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfBoxColorInformationDictionary** data) {
5246 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
5247 if (value == NULL) { return false; }
5248 if (data == NULL) { return true; }
5249 return mapBoxColorInformationDictionary(*pdfDoc, *value, (SkPdfBoxColorInformationDictionary**)data);
5250}
5251
5252bool BoxColorInformationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfBoxColorInformationDictionary** data) {
5253 if (BoxColorInformationDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
5254 if (abr == NULL || *abr == '\0') return false;
5255 return BoxColorInformationDictionaryFromDictionary(pdfDoc, dict, abr, data);
5256}
5257
5258bool isBoxStyleDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
5259 return true;
5260}
5261
5262bool BoxStyleDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfBoxStyleDictionary** data) {
5263 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
5264 if (value == NULL) { return false; }
5265 if (data == NULL) { return true; }
5266 return mapBoxStyleDictionary(*pdfDoc, *value, (SkPdfBoxStyleDictionary**)data);
5267}
5268
5269bool BoxStyleDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfBoxStyleDictionary** data) {
5270 if (BoxStyleDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
5271 if (abr == NULL || *abr == '\0') return false;
5272 return BoxStyleDictionaryFromDictionary(pdfDoc, dict, abr, data);
5273}
5274
5275bool isPrinterMarkAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
5276 return true;
5277}
5278
5279bool PrinterMarkAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfPrinterMarkAnnotationDictionary** data) {
5280 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
5281 if (value == NULL) { return false; }
5282 if (data == NULL) { return true; }
5283 return mapPrinterMarkAnnotationDictionary(*pdfDoc, *value, (SkPdfPrinterMarkAnnotationDictionary**)data);
5284}
5285
5286bool PrinterMarkAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfPrinterMarkAnnotationDictionary** data) {
5287 if (PrinterMarkAnnotationDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
5288 if (abr == NULL || *abr == '\0') return false;
5289 return PrinterMarkAnnotationDictionaryFromDictionary(pdfDoc, dict, abr, data);
5290}
5291
5292bool isPrinterMarkFormDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
5293 return true;
5294}
5295
5296bool PrinterMarkFormDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfPrinterMarkFormDictionary** data) {
5297 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
5298 if (value == NULL) { return false; }
5299 if (data == NULL) { return true; }
5300 return mapPrinterMarkFormDictionary(*pdfDoc, *value, (SkPdfPrinterMarkFormDictionary**)data);
5301}
5302
5303bool PrinterMarkFormDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfPrinterMarkFormDictionary** data) {
5304 if (PrinterMarkFormDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
5305 if (abr == NULL || *abr == '\0') return false;
5306 return PrinterMarkFormDictionaryFromDictionary(pdfDoc, dict, abr, data);
5307}
5308
5309bool isSeparationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
5310 return true;
5311}
5312
5313bool SeparationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfSeparationDictionary** data) {
5314 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
5315 if (value == NULL) { return false; }
5316 if (data == NULL) { return true; }
5317 return mapSeparationDictionary(*pdfDoc, *value, (SkPdfSeparationDictionary**)data);
5318}
5319
5320bool SeparationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfSeparationDictionary** data) {
5321 if (SeparationDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
5322 if (abr == NULL || *abr == '\0') return false;
5323 return SeparationDictionaryFromDictionary(pdfDoc, dict, abr, data);
5324}
5325
5326bool isPDF_XOutputIntentDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
5327 return true;
5328}
5329
5330bool PDF_XOutputIntentDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfPDF_XOutputIntentDictionary** data) {
5331 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
5332 if (value == NULL) { return false; }
5333 if (data == NULL) { return true; }
5334 return mapPDF_XOutputIntentDictionary(*pdfDoc, *value, (SkPdfPDF_XOutputIntentDictionary**)data);
5335}
5336
5337bool PDF_XOutputIntentDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfPDF_XOutputIntentDictionary** data) {
5338 if (PDF_XOutputIntentDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
5339 if (abr == NULL || *abr == '\0') return false;
5340 return PDF_XOutputIntentDictionaryFromDictionary(pdfDoc, dict, abr, data);
5341}
5342
5343bool isTrapNetworkAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
5344 return true;
5345}
5346
5347bool TrapNetworkAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfTrapNetworkAnnotationDictionary** data) {
5348 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
5349 if (value == NULL) { return false; }
5350 if (data == NULL) { return true; }
5351 return mapTrapNetworkAnnotationDictionary(*pdfDoc, *value, (SkPdfTrapNetworkAnnotationDictionary**)data);
5352}
5353
5354bool TrapNetworkAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfTrapNetworkAnnotationDictionary** data) {
5355 if (TrapNetworkAnnotationDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
5356 if (abr == NULL || *abr == '\0') return false;
5357 return TrapNetworkAnnotationDictionaryFromDictionary(pdfDoc, dict, abr, data);
5358}
5359
5360bool isTrapNetworkAppearanceStreamDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
5361 return true;
5362}
5363
5364bool TrapNetworkAppearanceStreamDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfTrapNetworkAppearanceStreamDictionary** data) {
5365 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
5366 if (value == NULL) { return false; }
5367 if (data == NULL) { return true; }
5368 return mapTrapNetworkAppearanceStreamDictionary(*pdfDoc, *value, (SkPdfTrapNetworkAppearanceStreamDictionary**)data);
5369}
5370
5371bool TrapNetworkAppearanceStreamDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfTrapNetworkAppearanceStreamDictionary** data) {
5372 if (TrapNetworkAppearanceStreamDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
5373 if (abr == NULL || *abr == '\0') return false;
5374 return TrapNetworkAppearanceStreamDictionaryFromDictionary(pdfDoc, dict, abr, data);
5375}
5376
5377bool isOpiVersionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
5378 return true;
5379}
5380
5381bool OpiVersionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfOpiVersionDictionary** data) {
5382 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
5383 if (value == NULL) { return false; }
5384 if (data == NULL) { return true; }
5385 return mapOpiVersionDictionary(*pdfDoc, *value, (SkPdfOpiVersionDictionary**)data);
5386}
5387
5388bool OpiVersionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfOpiVersionDictionary** data) {
5389 if (OpiVersionDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
5390 if (abr == NULL || *abr == '\0') return false;
5391 return OpiVersionDictionaryFromDictionary(pdfDoc, dict, abr, data);
5392}
5393
5394bool isMultiMasterFontDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
5395 std::string Subtype;
edisonn@google.comab03e682013-06-28 18:51:20 +00005396 if (!podofoObj.IsDictionary()) return false;
edisonn@google.com131d4ee2013-06-26 17:48:12 +00005397 if (!NameFromDictionary(&podofoDoc, podofoObj.GetDictionary(), "Subtype", "", &Subtype)) return false;
5398 if ((Subtype != "MMType1")) return false;
5399
5400 return true;
5401}
5402
5403bool MultiMasterFontDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfMultiMasterFontDictionary** data) {
5404 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
5405 if (value == NULL) { return false; }
5406 if (data == NULL) { return true; }
5407 return mapMultiMasterFontDictionary(*pdfDoc, *value, (SkPdfMultiMasterFontDictionary**)data);
5408}
5409
5410bool MultiMasterFontDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfMultiMasterFontDictionary** data) {
5411 if (MultiMasterFontDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
5412 if (abr == NULL || *abr == '\0') return false;
5413 return MultiMasterFontDictionaryFromDictionary(pdfDoc, dict, abr, data);
5414}