blob: d2ff1c9e12b1d774933e4983ab497ff1c9bc8980 [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;
2568 if (!NameFromDictionary(&podofoDoc, podofoObj.GetDictionary(), "Subtype", "", &Subtype)) return false;
2569 if ((Subtype != "TrueType")) return false;
2570
2571 return true;
2572}
2573
2574bool TrueTypeFontDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfTrueTypeFontDictionary** data) {
2575 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2576 if (value == NULL) { return false; }
2577 if (data == NULL) { return true; }
2578 return mapTrueTypeFontDictionary(*pdfDoc, *value, (SkPdfTrueTypeFontDictionary**)data);
2579}
2580
2581bool TrueTypeFontDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfTrueTypeFontDictionary** data) {
2582 if (TrueTypeFontDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2583 if (abr == NULL || *abr == '\0') return false;
2584 return TrueTypeFontDictionaryFromDictionary(pdfDoc, dict, abr, data);
2585}
2586
2587bool isStreamCommonDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2588 return true;
2589}
2590
2591bool StreamCommonDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfStreamCommonDictionary** data) {
2592 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2593 if (value == NULL) { return false; }
2594 if (data == NULL) { return true; }
2595 return mapStreamCommonDictionary(*pdfDoc, *value, (SkPdfStreamCommonDictionary**)data);
2596}
2597
2598bool StreamCommonDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfStreamCommonDictionary** data) {
2599 if (StreamCommonDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2600 if (abr == NULL || *abr == '\0') return false;
2601 return StreamCommonDictionaryFromDictionary(pdfDoc, dict, abr, data);
2602}
2603
2604bool isLzwdecodeAndFlatedecodeFiltersDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2605 return true;
2606}
2607
2608bool LzwdecodeAndFlatedecodeFiltersDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfLzwdecodeAndFlatedecodeFiltersDictionary** data) {
2609 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2610 if (value == NULL) { return false; }
2611 if (data == NULL) { return true; }
2612 return mapLzwdecodeAndFlatedecodeFiltersDictionary(*pdfDoc, *value, (SkPdfLzwdecodeAndFlatedecodeFiltersDictionary**)data);
2613}
2614
2615bool LzwdecodeAndFlatedecodeFiltersDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfLzwdecodeAndFlatedecodeFiltersDictionary** data) {
2616 if (LzwdecodeAndFlatedecodeFiltersDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2617 if (abr == NULL || *abr == '\0') return false;
2618 return LzwdecodeAndFlatedecodeFiltersDictionaryFromDictionary(pdfDoc, dict, abr, data);
2619}
2620
2621bool isCcittfaxdecodeFilterDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2622 return true;
2623}
2624
2625bool CcittfaxdecodeFilterDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfCcittfaxdecodeFilterDictionary** data) {
2626 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2627 if (value == NULL) { return false; }
2628 if (data == NULL) { return true; }
2629 return mapCcittfaxdecodeFilterDictionary(*pdfDoc, *value, (SkPdfCcittfaxdecodeFilterDictionary**)data);
2630}
2631
2632bool CcittfaxdecodeFilterDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfCcittfaxdecodeFilterDictionary** data) {
2633 if (CcittfaxdecodeFilterDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2634 if (abr == NULL || *abr == '\0') return false;
2635 return CcittfaxdecodeFilterDictionaryFromDictionary(pdfDoc, dict, abr, data);
2636}
2637
2638bool isJbig2DecodeFilterDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2639 return true;
2640}
2641
2642bool Jbig2DecodeFilterDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfJbig2DecodeFilterDictionary** data) {
2643 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2644 if (value == NULL) { return false; }
2645 if (data == NULL) { return true; }
2646 return mapJbig2DecodeFilterDictionary(*pdfDoc, *value, (SkPdfJbig2DecodeFilterDictionary**)data);
2647}
2648
2649bool Jbig2DecodeFilterDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfJbig2DecodeFilterDictionary** data) {
2650 if (Jbig2DecodeFilterDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2651 if (abr == NULL || *abr == '\0') return false;
2652 return Jbig2DecodeFilterDictionaryFromDictionary(pdfDoc, dict, abr, data);
2653}
2654
2655bool isDctdecodeFilterDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2656 return true;
2657}
2658
2659bool DctdecodeFilterDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfDctdecodeFilterDictionary** data) {
2660 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2661 if (value == NULL) { return false; }
2662 if (data == NULL) { return true; }
2663 return mapDctdecodeFilterDictionary(*pdfDoc, *value, (SkPdfDctdecodeFilterDictionary**)data);
2664}
2665
2666bool DctdecodeFilterDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfDctdecodeFilterDictionary** data) {
2667 if (DctdecodeFilterDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2668 if (abr == NULL || *abr == '\0') return false;
2669 return DctdecodeFilterDictionaryFromDictionary(pdfDoc, dict, abr, data);
2670}
2671
2672bool isFileTrailerDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2673 return true;
2674}
2675
2676bool FileTrailerDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfFileTrailerDictionary** data) {
2677 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2678 if (value == NULL) { return false; }
2679 if (data == NULL) { return true; }
2680 return mapFileTrailerDictionary(*pdfDoc, *value, (SkPdfFileTrailerDictionary**)data);
2681}
2682
2683bool FileTrailerDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfFileTrailerDictionary** data) {
2684 if (FileTrailerDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2685 if (abr == NULL || *abr == '\0') return false;
2686 return FileTrailerDictionaryFromDictionary(pdfDoc, dict, abr, data);
2687}
2688
2689bool isEncryptionCommonDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2690 return true;
2691}
2692
2693bool EncryptionCommonDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfEncryptionCommonDictionary** data) {
2694 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2695 if (value == NULL) { return false; }
2696 if (data == NULL) { return true; }
2697 return mapEncryptionCommonDictionary(*pdfDoc, *value, (SkPdfEncryptionCommonDictionary**)data);
2698}
2699
2700bool EncryptionCommonDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfEncryptionCommonDictionary** data) {
2701 if (EncryptionCommonDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2702 if (abr == NULL || *abr == '\0') return false;
2703 return EncryptionCommonDictionaryFromDictionary(pdfDoc, dict, abr, data);
2704}
2705
2706bool isStandardSecurityHandlerDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2707 return true;
2708}
2709
2710bool StandardSecurityHandlerDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfStandardSecurityHandlerDictionary** data) {
2711 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2712 if (value == NULL) { return false; }
2713 if (data == NULL) { return true; }
2714 return mapStandardSecurityHandlerDictionary(*pdfDoc, *value, (SkPdfStandardSecurityHandlerDictionary**)data);
2715}
2716
2717bool StandardSecurityHandlerDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfStandardSecurityHandlerDictionary** data) {
2718 if (StandardSecurityHandlerDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2719 if (abr == NULL || *abr == '\0') return false;
2720 return StandardSecurityHandlerDictionaryFromDictionary(pdfDoc, dict, abr, data);
2721}
2722
2723bool isCatalogDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2724 return true;
2725}
2726
2727bool CatalogDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfCatalogDictionary** data) {
2728 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2729 if (value == NULL) { return false; }
2730 if (data == NULL) { return true; }
2731 return mapCatalogDictionary(*pdfDoc, *value, (SkPdfCatalogDictionary**)data);
2732}
2733
2734bool CatalogDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfCatalogDictionary** data) {
2735 if (CatalogDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2736 if (abr == NULL || *abr == '\0') return false;
2737 return CatalogDictionaryFromDictionary(pdfDoc, dict, abr, data);
2738}
2739
2740bool isPageTreeNodeDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2741 return true;
2742}
2743
2744bool PageTreeNodeDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfPageTreeNodeDictionary** data) {
2745 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2746 if (value == NULL) { return false; }
2747 if (data == NULL) { return true; }
2748 return mapPageTreeNodeDictionary(*pdfDoc, *value, (SkPdfPageTreeNodeDictionary**)data);
2749}
2750
2751bool PageTreeNodeDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfPageTreeNodeDictionary** data) {
2752 if (PageTreeNodeDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2753 if (abr == NULL || *abr == '\0') return false;
2754 return PageTreeNodeDictionaryFromDictionary(pdfDoc, dict, abr, data);
2755}
2756
2757bool isPageObjectDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2758 return true;
2759}
2760
2761bool PageObjectDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfPageObjectDictionary** data) {
2762 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2763 if (value == NULL) { return false; }
2764 if (data == NULL) { return true; }
2765 return mapPageObjectDictionary(*pdfDoc, *value, (SkPdfPageObjectDictionary**)data);
2766}
2767
2768bool PageObjectDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfPageObjectDictionary** data) {
2769 if (PageObjectDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2770 if (abr == NULL || *abr == '\0') return false;
2771 return PageObjectDictionaryFromDictionary(pdfDoc, dict, abr, data);
2772}
2773
2774bool isNameDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2775 return true;
2776}
2777
2778bool NameDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfNameDictionary** data) {
2779 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2780 if (value == NULL) { return false; }
2781 if (data == NULL) { return true; }
2782 return mapNameDictionary(*pdfDoc, *value, (SkPdfNameDictionary**)data);
2783}
2784
2785bool NameDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfNameDictionary** data) {
2786 if (NameDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2787 if (abr == NULL || *abr == '\0') return false;
2788 return NameDictionaryFromDictionary(pdfDoc, dict, abr, data);
2789}
2790
2791bool isResourceDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2792 return true;
2793}
2794
2795bool ResourceDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfResourceDictionary** data) {
2796 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2797 if (value == NULL) { return false; }
2798 if (data == NULL) { return true; }
2799 return mapResourceDictionary(*pdfDoc, *value, (SkPdfResourceDictionary**)data);
2800}
2801
2802bool ResourceDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfResourceDictionary** data) {
2803 if (ResourceDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2804 if (abr == NULL || *abr == '\0') return false;
2805 return ResourceDictionaryFromDictionary(pdfDoc, dict, abr, data);
2806}
2807
2808bool isNameTreeNodeDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2809 return true;
2810}
2811
2812bool NameTreeNodeDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfNameTreeNodeDictionary** data) {
2813 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2814 if (value == NULL) { return false; }
2815 if (data == NULL) { return true; }
2816 return mapNameTreeNodeDictionary(*pdfDoc, *value, (SkPdfNameTreeNodeDictionary**)data);
2817}
2818
2819bool NameTreeNodeDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfNameTreeNodeDictionary** data) {
2820 if (NameTreeNodeDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2821 if (abr == NULL || *abr == '\0') return false;
2822 return NameTreeNodeDictionaryFromDictionary(pdfDoc, dict, abr, data);
2823}
2824
2825bool isNumberTreeNodeDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2826 return true;
2827}
2828
2829bool NumberTreeNodeDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfNumberTreeNodeDictionary** data) {
2830 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2831 if (value == NULL) { return false; }
2832 if (data == NULL) { return true; }
2833 return mapNumberTreeNodeDictionary(*pdfDoc, *value, (SkPdfNumberTreeNodeDictionary**)data);
2834}
2835
2836bool NumberTreeNodeDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfNumberTreeNodeDictionary** data) {
2837 if (NumberTreeNodeDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2838 if (abr == NULL || *abr == '\0') return false;
2839 return NumberTreeNodeDictionaryFromDictionary(pdfDoc, dict, abr, data);
2840}
2841
2842bool isFunctionCommonDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2843 return true;
2844}
2845
2846bool FunctionCommonDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfFunctionCommonDictionary** data) {
2847 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2848 if (value == NULL) { return false; }
2849 if (data == NULL) { return true; }
2850 return mapFunctionCommonDictionary(*pdfDoc, *value, (SkPdfFunctionCommonDictionary**)data);
2851}
2852
2853bool FunctionCommonDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfFunctionCommonDictionary** data) {
2854 if (FunctionCommonDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2855 if (abr == NULL || *abr == '\0') return false;
2856 return FunctionCommonDictionaryFromDictionary(pdfDoc, dict, abr, data);
2857}
2858
2859bool isType0FunctionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2860 return true;
2861}
2862
2863bool Type0FunctionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfType0FunctionDictionary** data) {
2864 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2865 if (value == NULL) { return false; }
2866 if (data == NULL) { return true; }
2867 return mapType0FunctionDictionary(*pdfDoc, *value, (SkPdfType0FunctionDictionary**)data);
2868}
2869
2870bool Type0FunctionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfType0FunctionDictionary** data) {
2871 if (Type0FunctionDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2872 if (abr == NULL || *abr == '\0') return false;
2873 return Type0FunctionDictionaryFromDictionary(pdfDoc, dict, abr, data);
2874}
2875
2876bool isType2FunctionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2877 return true;
2878}
2879
2880bool Type2FunctionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfType2FunctionDictionary** data) {
2881 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2882 if (value == NULL) { return false; }
2883 if (data == NULL) { return true; }
2884 return mapType2FunctionDictionary(*pdfDoc, *value, (SkPdfType2FunctionDictionary**)data);
2885}
2886
2887bool Type2FunctionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfType2FunctionDictionary** data) {
2888 if (Type2FunctionDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2889 if (abr == NULL || *abr == '\0') return false;
2890 return Type2FunctionDictionaryFromDictionary(pdfDoc, dict, abr, data);
2891}
2892
2893bool isType3FunctionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2894 return true;
2895}
2896
2897bool Type3FunctionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfType3FunctionDictionary** data) {
2898 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2899 if (value == NULL) { return false; }
2900 if (data == NULL) { return true; }
2901 return mapType3FunctionDictionary(*pdfDoc, *value, (SkPdfType3FunctionDictionary**)data);
2902}
2903
2904bool Type3FunctionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfType3FunctionDictionary** data) {
2905 if (Type3FunctionDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2906 if (abr == NULL || *abr == '\0') return false;
2907 return Type3FunctionDictionaryFromDictionary(pdfDoc, dict, abr, data);
2908}
2909
2910bool isFileSpecificationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2911 return true;
2912}
2913
2914bool FileSpecificationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfFileSpecificationDictionary** data) {
2915 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2916 if (value == NULL) { return false; }
2917 if (data == NULL) { return true; }
2918 return mapFileSpecificationDictionary(*pdfDoc, *value, (SkPdfFileSpecificationDictionary**)data);
2919}
2920
2921bool FileSpecificationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfFileSpecificationDictionary** data) {
2922 if (FileSpecificationDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2923 if (abr == NULL || *abr == '\0') return false;
2924 return FileSpecificationDictionaryFromDictionary(pdfDoc, dict, abr, data);
2925}
2926
2927bool isEmbeddedFileStreamDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2928 return true;
2929}
2930
2931bool EmbeddedFileStreamDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfEmbeddedFileStreamDictionary** data) {
2932 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2933 if (value == NULL) { return false; }
2934 if (data == NULL) { return true; }
2935 return mapEmbeddedFileStreamDictionary(*pdfDoc, *value, (SkPdfEmbeddedFileStreamDictionary**)data);
2936}
2937
2938bool EmbeddedFileStreamDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfEmbeddedFileStreamDictionary** data) {
2939 if (EmbeddedFileStreamDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2940 if (abr == NULL || *abr == '\0') return false;
2941 return EmbeddedFileStreamDictionaryFromDictionary(pdfDoc, dict, abr, data);
2942}
2943
2944bool isEmbeddedFileParameterDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2945 return true;
2946}
2947
2948bool EmbeddedFileParameterDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfEmbeddedFileParameterDictionary** data) {
2949 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2950 if (value == NULL) { return false; }
2951 if (data == NULL) { return true; }
2952 return mapEmbeddedFileParameterDictionary(*pdfDoc, *value, (SkPdfEmbeddedFileParameterDictionary**)data);
2953}
2954
2955bool EmbeddedFileParameterDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfEmbeddedFileParameterDictionary** data) {
2956 if (EmbeddedFileParameterDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2957 if (abr == NULL || *abr == '\0') return false;
2958 return EmbeddedFileParameterDictionaryFromDictionary(pdfDoc, dict, abr, data);
2959}
2960
2961bool isMacOsFileInformationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2962 return true;
2963}
2964
2965bool MacOsFileInformationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfMacOsFileInformationDictionary** data) {
2966 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2967 if (value == NULL) { return false; }
2968 if (data == NULL) { return true; }
2969 return mapMacOsFileInformationDictionary(*pdfDoc, *value, (SkPdfMacOsFileInformationDictionary**)data);
2970}
2971
2972bool MacOsFileInformationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfMacOsFileInformationDictionary** data) {
2973 if (MacOsFileInformationDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2974 if (abr == NULL || *abr == '\0') return false;
2975 return MacOsFileInformationDictionaryFromDictionary(pdfDoc, dict, abr, data);
2976}
2977
2978bool isGraphicsStateDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2979 return true;
2980}
2981
2982bool GraphicsStateDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfGraphicsStateDictionary** data) {
2983 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
2984 if (value == NULL) { return false; }
2985 if (data == NULL) { return true; }
2986 return mapGraphicsStateDictionary(*pdfDoc, *value, (SkPdfGraphicsStateDictionary**)data);
2987}
2988
2989bool GraphicsStateDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfGraphicsStateDictionary** data) {
2990 if (GraphicsStateDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
2991 if (abr == NULL || *abr == '\0') return false;
2992 return GraphicsStateDictionaryFromDictionary(pdfDoc, dict, abr, data);
2993}
2994
2995bool isCalgrayColorSpaceDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
2996 return true;
2997}
2998
2999bool CalgrayColorSpaceDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfCalgrayColorSpaceDictionary** data) {
3000 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3001 if (value == NULL) { return false; }
3002 if (data == NULL) { return true; }
3003 return mapCalgrayColorSpaceDictionary(*pdfDoc, *value, (SkPdfCalgrayColorSpaceDictionary**)data);
3004}
3005
3006bool CalgrayColorSpaceDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfCalgrayColorSpaceDictionary** data) {
3007 if (CalgrayColorSpaceDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3008 if (abr == NULL || *abr == '\0') return false;
3009 return CalgrayColorSpaceDictionaryFromDictionary(pdfDoc, dict, abr, data);
3010}
3011
3012bool isCalrgbColorSpaceDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3013 return true;
3014}
3015
3016bool CalrgbColorSpaceDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfCalrgbColorSpaceDictionary** data) {
3017 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3018 if (value == NULL) { return false; }
3019 if (data == NULL) { return true; }
3020 return mapCalrgbColorSpaceDictionary(*pdfDoc, *value, (SkPdfCalrgbColorSpaceDictionary**)data);
3021}
3022
3023bool CalrgbColorSpaceDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfCalrgbColorSpaceDictionary** data) {
3024 if (CalrgbColorSpaceDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3025 if (abr == NULL || *abr == '\0') return false;
3026 return CalrgbColorSpaceDictionaryFromDictionary(pdfDoc, dict, abr, data);
3027}
3028
3029bool isLabColorSpaceDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3030 return true;
3031}
3032
3033bool LabColorSpaceDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfLabColorSpaceDictionary** data) {
3034 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3035 if (value == NULL) { return false; }
3036 if (data == NULL) { return true; }
3037 return mapLabColorSpaceDictionary(*pdfDoc, *value, (SkPdfLabColorSpaceDictionary**)data);
3038}
3039
3040bool LabColorSpaceDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfLabColorSpaceDictionary** data) {
3041 if (LabColorSpaceDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3042 if (abr == NULL || *abr == '\0') return false;
3043 return LabColorSpaceDictionaryFromDictionary(pdfDoc, dict, abr, data);
3044}
3045
3046bool isIccProfileStreamDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3047 return true;
3048}
3049
3050bool IccProfileStreamDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfIccProfileStreamDictionary** data) {
3051 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3052 if (value == NULL) { return false; }
3053 if (data == NULL) { return true; }
3054 return mapIccProfileStreamDictionary(*pdfDoc, *value, (SkPdfIccProfileStreamDictionary**)data);
3055}
3056
3057bool IccProfileStreamDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfIccProfileStreamDictionary** data) {
3058 if (IccProfileStreamDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3059 if (abr == NULL || *abr == '\0') return false;
3060 return IccProfileStreamDictionaryFromDictionary(pdfDoc, dict, abr, data);
3061}
3062
3063bool isDeviceNColorSpaceDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3064 return true;
3065}
3066
3067bool DeviceNColorSpaceDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfDeviceNColorSpaceDictionary** data) {
3068 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3069 if (value == NULL) { return false; }
3070 if (data == NULL) { return true; }
3071 return mapDeviceNColorSpaceDictionary(*pdfDoc, *value, (SkPdfDeviceNColorSpaceDictionary**)data);
3072}
3073
3074bool DeviceNColorSpaceDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfDeviceNColorSpaceDictionary** data) {
3075 if (DeviceNColorSpaceDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3076 if (abr == NULL || *abr == '\0') return false;
3077 return DeviceNColorSpaceDictionaryFromDictionary(pdfDoc, dict, abr, data);
3078}
3079
3080bool isType1PatternDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3081 return true;
3082}
3083
3084bool Type1PatternDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfType1PatternDictionary** data) {
3085 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3086 if (value == NULL) { return false; }
3087 if (data == NULL) { return true; }
3088 return mapType1PatternDictionary(*pdfDoc, *value, (SkPdfType1PatternDictionary**)data);
3089}
3090
3091bool Type1PatternDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfType1PatternDictionary** data) {
3092 if (Type1PatternDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3093 if (abr == NULL || *abr == '\0') return false;
3094 return Type1PatternDictionaryFromDictionary(pdfDoc, dict, abr, data);
3095}
3096
3097bool isType2PatternDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3098 return true;
3099}
3100
3101bool Type2PatternDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfType2PatternDictionary** data) {
3102 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3103 if (value == NULL) { return false; }
3104 if (data == NULL) { return true; }
3105 return mapType2PatternDictionary(*pdfDoc, *value, (SkPdfType2PatternDictionary**)data);
3106}
3107
3108bool Type2PatternDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfType2PatternDictionary** data) {
3109 if (Type2PatternDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3110 if (abr == NULL || *abr == '\0') return false;
3111 return Type2PatternDictionaryFromDictionary(pdfDoc, dict, abr, data);
3112}
3113
3114bool isShadingDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3115 return true;
3116}
3117
3118bool ShadingDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfShadingDictionary** data) {
3119 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3120 if (value == NULL) { return false; }
3121 if (data == NULL) { return true; }
3122 return mapShadingDictionary(*pdfDoc, *value, (SkPdfShadingDictionary**)data);
3123}
3124
3125bool ShadingDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfShadingDictionary** data) {
3126 if (ShadingDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3127 if (abr == NULL || *abr == '\0') return false;
3128 return ShadingDictionaryFromDictionary(pdfDoc, dict, abr, data);
3129}
3130
3131bool isType1ShadingDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3132 return true;
3133}
3134
3135bool Type1ShadingDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfType1ShadingDictionary** data) {
3136 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3137 if (value == NULL) { return false; }
3138 if (data == NULL) { return true; }
3139 return mapType1ShadingDictionary(*pdfDoc, *value, (SkPdfType1ShadingDictionary**)data);
3140}
3141
3142bool Type1ShadingDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfType1ShadingDictionary** data) {
3143 if (Type1ShadingDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3144 if (abr == NULL || *abr == '\0') return false;
3145 return Type1ShadingDictionaryFromDictionary(pdfDoc, dict, abr, data);
3146}
3147
3148bool isType2ShadingDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3149 return true;
3150}
3151
3152bool Type2ShadingDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfType2ShadingDictionary** data) {
3153 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3154 if (value == NULL) { return false; }
3155 if (data == NULL) { return true; }
3156 return mapType2ShadingDictionary(*pdfDoc, *value, (SkPdfType2ShadingDictionary**)data);
3157}
3158
3159bool Type2ShadingDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfType2ShadingDictionary** data) {
3160 if (Type2ShadingDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3161 if (abr == NULL || *abr == '\0') return false;
3162 return Type2ShadingDictionaryFromDictionary(pdfDoc, dict, abr, data);
3163}
3164
3165bool isType3ShadingDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3166 return true;
3167}
3168
3169bool Type3ShadingDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfType3ShadingDictionary** data) {
3170 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3171 if (value == NULL) { return false; }
3172 if (data == NULL) { return true; }
3173 return mapType3ShadingDictionary(*pdfDoc, *value, (SkPdfType3ShadingDictionary**)data);
3174}
3175
3176bool Type3ShadingDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfType3ShadingDictionary** data) {
3177 if (Type3ShadingDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3178 if (abr == NULL || *abr == '\0') return false;
3179 return Type3ShadingDictionaryFromDictionary(pdfDoc, dict, abr, data);
3180}
3181
3182bool isType4ShadingDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3183 return true;
3184}
3185
3186bool Type4ShadingDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfType4ShadingDictionary** data) {
3187 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3188 if (value == NULL) { return false; }
3189 if (data == NULL) { return true; }
3190 return mapType4ShadingDictionary(*pdfDoc, *value, (SkPdfType4ShadingDictionary**)data);
3191}
3192
3193bool Type4ShadingDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfType4ShadingDictionary** data) {
3194 if (Type4ShadingDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3195 if (abr == NULL || *abr == '\0') return false;
3196 return Type4ShadingDictionaryFromDictionary(pdfDoc, dict, abr, data);
3197}
3198
3199bool isType5ShadingDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3200 return true;
3201}
3202
3203bool Type5ShadingDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfType5ShadingDictionary** data) {
3204 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3205 if (value == NULL) { return false; }
3206 if (data == NULL) { return true; }
3207 return mapType5ShadingDictionary(*pdfDoc, *value, (SkPdfType5ShadingDictionary**)data);
3208}
3209
3210bool Type5ShadingDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfType5ShadingDictionary** data) {
3211 if (Type5ShadingDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3212 if (abr == NULL || *abr == '\0') return false;
3213 return Type5ShadingDictionaryFromDictionary(pdfDoc, dict, abr, data);
3214}
3215
3216bool isType6ShadingDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3217 return true;
3218}
3219
3220bool Type6ShadingDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfType6ShadingDictionary** data) {
3221 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3222 if (value == NULL) { return false; }
3223 if (data == NULL) { return true; }
3224 return mapType6ShadingDictionary(*pdfDoc, *value, (SkPdfType6ShadingDictionary**)data);
3225}
3226
3227bool Type6ShadingDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfType6ShadingDictionary** data) {
3228 if (Type6ShadingDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3229 if (abr == NULL || *abr == '\0') return false;
3230 return Type6ShadingDictionaryFromDictionary(pdfDoc, dict, abr, data);
3231}
3232
3233bool isImageDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3234 std::string Subtype;
3235 if (!NameFromDictionary(&podofoDoc, podofoObj.GetDictionary(), "Subtype", "", &Subtype)) return false;
3236 if ((Subtype != "Image")) return false;
3237
3238 return true;
3239}
3240
3241bool ImageDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfImageDictionary** data) {
3242 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3243 if (value == NULL) { return false; }
3244 if (data == NULL) { return true; }
3245 return mapImageDictionary(*pdfDoc, *value, (SkPdfImageDictionary**)data);
3246}
3247
3248bool ImageDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfImageDictionary** data) {
3249 if (ImageDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3250 if (abr == NULL || *abr == '\0') return false;
3251 return ImageDictionaryFromDictionary(pdfDoc, dict, abr, data);
3252}
3253
3254bool isAlternateImageDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3255 return true;
3256}
3257
3258bool AlternateImageDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfAlternateImageDictionary** data) {
3259 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3260 if (value == NULL) { return false; }
3261 if (data == NULL) { return true; }
3262 return mapAlternateImageDictionary(*pdfDoc, *value, (SkPdfAlternateImageDictionary**)data);
3263}
3264
3265bool AlternateImageDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfAlternateImageDictionary** data) {
3266 if (AlternateImageDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3267 if (abr == NULL || *abr == '\0') return false;
3268 return AlternateImageDictionaryFromDictionary(pdfDoc, dict, abr, data);
3269}
3270
3271bool isType1FormDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3272 std::string Subtype;
3273 if (!NameFromDictionary(&podofoDoc, podofoObj.GetDictionary(), "Subtype", "", &Subtype)) return false;
3274 if ((Subtype != "Form")) return false;
3275
3276 return true;
3277}
3278
3279bool Type1FormDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfType1FormDictionary** data) {
3280 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3281 if (value == NULL) { return false; }
3282 if (data == NULL) { return true; }
3283 return mapType1FormDictionary(*pdfDoc, *value, (SkPdfType1FormDictionary**)data);
3284}
3285
3286bool Type1FormDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfType1FormDictionary** data) {
3287 if (Type1FormDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3288 if (abr == NULL || *abr == '\0') return false;
3289 return Type1FormDictionaryFromDictionary(pdfDoc, dict, abr, data);
3290}
3291
3292bool isGroupAttributesDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3293 return true;
3294}
3295
3296bool GroupAttributesDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfGroupAttributesDictionary** data) {
3297 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3298 if (value == NULL) { return false; }
3299 if (data == NULL) { return true; }
3300 return mapGroupAttributesDictionary(*pdfDoc, *value, (SkPdfGroupAttributesDictionary**)data);
3301}
3302
3303bool GroupAttributesDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfGroupAttributesDictionary** data) {
3304 if (GroupAttributesDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3305 if (abr == NULL || *abr == '\0') return false;
3306 return GroupAttributesDictionaryFromDictionary(pdfDoc, dict, abr, data);
3307}
3308
3309bool isReferenceDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3310 return true;
3311}
3312
3313bool ReferenceDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfReferenceDictionary** data) {
3314 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3315 if (value == NULL) { return false; }
3316 if (data == NULL) { return true; }
3317 return mapReferenceDictionary(*pdfDoc, *value, (SkPdfReferenceDictionary**)data);
3318}
3319
3320bool ReferenceDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfReferenceDictionary** data) {
3321 if (ReferenceDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3322 if (abr == NULL || *abr == '\0') return false;
3323 return ReferenceDictionaryFromDictionary(pdfDoc, dict, abr, data);
3324}
3325
3326bool isPSXobjectDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3327 return true;
3328}
3329
3330bool PSXobjectDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfPSXobjectDictionary** data) {
3331 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3332 if (value == NULL) { return false; }
3333 if (data == NULL) { return true; }
3334 return mapPSXobjectDictionary(*pdfDoc, *value, (SkPdfPSXobjectDictionary**)data);
3335}
3336
3337bool PSXobjectDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfPSXobjectDictionary** data) {
3338 if (PSXobjectDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3339 if (abr == NULL || *abr == '\0') return false;
3340 return PSXobjectDictionaryFromDictionary(pdfDoc, dict, abr, data);
3341}
3342
3343bool isType1FontDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3344 std::string Subtype;
3345 if (!NameFromDictionary(&podofoDoc, podofoObj.GetDictionary(), "Subtype", "", &Subtype)) return false;
3346 if ((Subtype != "MMType1") && (Subtype != "TrueType") && (Subtype != "Type3") && (Subtype != "Type1")) return false;
3347
3348 return true;
3349}
3350
3351bool Type1FontDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfType1FontDictionary** data) {
3352 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3353 if (value == NULL) { return false; }
3354 if (data == NULL) { return true; }
3355 return mapType1FontDictionary(*pdfDoc, *value, (SkPdfType1FontDictionary**)data);
3356}
3357
3358bool Type1FontDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfType1FontDictionary** data) {
3359 if (Type1FontDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3360 if (abr == NULL || *abr == '\0') return false;
3361 return Type1FontDictionaryFromDictionary(pdfDoc, dict, abr, data);
3362}
3363
3364bool isType3FontDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3365 std::string Subtype;
3366 if (!NameFromDictionary(&podofoDoc, podofoObj.GetDictionary(), "Subtype", "", &Subtype)) return false;
3367 if ((Subtype != "Type3")) return false;
3368
3369 return true;
3370}
3371
3372bool Type3FontDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfType3FontDictionary** data) {
3373 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3374 if (value == NULL) { return false; }
3375 if (data == NULL) { return true; }
3376 return mapType3FontDictionary(*pdfDoc, *value, (SkPdfType3FontDictionary**)data);
3377}
3378
3379bool Type3FontDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfType3FontDictionary** data) {
3380 if (Type3FontDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3381 if (abr == NULL || *abr == '\0') return false;
3382 return Type3FontDictionaryFromDictionary(pdfDoc, dict, abr, data);
3383}
3384
3385bool isEncodingDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3386 return true;
3387}
3388
3389bool EncodingDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfEncodingDictionary** data) {
3390 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3391 if (value == NULL) { return false; }
3392 if (data == NULL) { return true; }
3393 return mapEncodingDictionary(*pdfDoc, *value, (SkPdfEncodingDictionary**)data);
3394}
3395
3396bool EncodingDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfEncodingDictionary** data) {
3397 if (EncodingDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3398 if (abr == NULL || *abr == '\0') return false;
3399 return EncodingDictionaryFromDictionary(pdfDoc, dict, abr, data);
3400}
3401
3402bool isCIDSystemInfoDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3403 return true;
3404}
3405
3406bool CIDSystemInfoDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfCIDSystemInfoDictionary** data) {
3407 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3408 if (value == NULL) { return false; }
3409 if (data == NULL) { return true; }
3410 return mapCIDSystemInfoDictionary(*pdfDoc, *value, (SkPdfCIDSystemInfoDictionary**)data);
3411}
3412
3413bool CIDSystemInfoDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfCIDSystemInfoDictionary** data) {
3414 if (CIDSystemInfoDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3415 if (abr == NULL || *abr == '\0') return false;
3416 return CIDSystemInfoDictionaryFromDictionary(pdfDoc, dict, abr, data);
3417}
3418
3419bool isCIDFontDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3420 std::string Subtype;
3421 if (!NameFromDictionary(&podofoDoc, podofoObj.GetDictionary(), "Subtype", "", &Subtype)) return false;
3422 if ((Subtype != "CIDFontType0") && (Subtype != "CIDFontType2")) return false;
3423
3424 return true;
3425}
3426
3427bool CIDFontDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfCIDFontDictionary** data) {
3428 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3429 if (value == NULL) { return false; }
3430 if (data == NULL) { return true; }
3431 return mapCIDFontDictionary(*pdfDoc, *value, (SkPdfCIDFontDictionary**)data);
3432}
3433
3434bool CIDFontDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfCIDFontDictionary** data) {
3435 if (CIDFontDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3436 if (abr == NULL || *abr == '\0') return false;
3437 return CIDFontDictionaryFromDictionary(pdfDoc, dict, abr, data);
3438}
3439
3440bool isCMapDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3441 return true;
3442}
3443
3444bool CMapDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfCMapDictionary** data) {
3445 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3446 if (value == NULL) { return false; }
3447 if (data == NULL) { return true; }
3448 return mapCMapDictionary(*pdfDoc, *value, (SkPdfCMapDictionary**)data);
3449}
3450
3451bool CMapDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfCMapDictionary** data) {
3452 if (CMapDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3453 if (abr == NULL || *abr == '\0') return false;
3454 return CMapDictionaryFromDictionary(pdfDoc, dict, abr, data);
3455}
3456
3457bool isType0FontDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3458 std::string Subtype;
3459 if (!NameFromDictionary(&podofoDoc, podofoObj.GetDictionary(), "Subtype", "", &Subtype)) return false;
3460 if ((Subtype != "Type0")) return false;
3461
3462 return true;
3463}
3464
3465bool Type0FontDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfType0FontDictionary** data) {
3466 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3467 if (value == NULL) { return false; }
3468 if (data == NULL) { return true; }
3469 return mapType0FontDictionary(*pdfDoc, *value, (SkPdfType0FontDictionary**)data);
3470}
3471
3472bool Type0FontDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfType0FontDictionary** data) {
3473 if (Type0FontDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3474 if (abr == NULL || *abr == '\0') return false;
3475 return Type0FontDictionaryFromDictionary(pdfDoc, dict, abr, data);
3476}
3477
3478bool isFontDescriptorDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
edisonn@google.comeee4b652013-06-27 13:22:42 +00003479 std::string Type;
3480 if (!NameFromDictionary(&podofoDoc, podofoObj.GetDictionary(), "Type", "", &Type)) return false;
3481 if ((Type != "FontDescriptor")) return false;
3482
edisonn@google.com131d4ee2013-06-26 17:48:12 +00003483 return true;
3484}
3485
3486bool FontDescriptorDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfFontDescriptorDictionary** data) {
3487 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3488 if (value == NULL) { return false; }
3489 if (data == NULL) { return true; }
3490 return mapFontDescriptorDictionary(*pdfDoc, *value, (SkPdfFontDescriptorDictionary**)data);
3491}
3492
3493bool FontDescriptorDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfFontDescriptorDictionary** data) {
3494 if (FontDescriptorDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3495 if (abr == NULL || *abr == '\0') return false;
3496 return FontDescriptorDictionaryFromDictionary(pdfDoc, dict, abr, data);
3497}
3498
3499bool isCIDFontDescriptorDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3500 return true;
3501}
3502
3503bool CIDFontDescriptorDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfCIDFontDescriptorDictionary** data) {
3504 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3505 if (value == NULL) { return false; }
3506 if (data == NULL) { return true; }
3507 return mapCIDFontDescriptorDictionary(*pdfDoc, *value, (SkPdfCIDFontDescriptorDictionary**)data);
3508}
3509
3510bool CIDFontDescriptorDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfCIDFontDescriptorDictionary** data) {
3511 if (CIDFontDescriptorDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3512 if (abr == NULL || *abr == '\0') return false;
3513 return CIDFontDescriptorDictionaryFromDictionary(pdfDoc, dict, abr, data);
3514}
3515
3516bool isEmbeddedFontStreamDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3517 return true;
3518}
3519
3520bool EmbeddedFontStreamDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfEmbeddedFontStreamDictionary** data) {
3521 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3522 if (value == NULL) { return false; }
3523 if (data == NULL) { return true; }
3524 return mapEmbeddedFontStreamDictionary(*pdfDoc, *value, (SkPdfEmbeddedFontStreamDictionary**)data);
3525}
3526
3527bool EmbeddedFontStreamDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfEmbeddedFontStreamDictionary** data) {
3528 if (EmbeddedFontStreamDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3529 if (abr == NULL || *abr == '\0') return false;
3530 return EmbeddedFontStreamDictionaryFromDictionary(pdfDoc, dict, abr, data);
3531}
3532
3533bool isType1HalftoneDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3534 return true;
3535}
3536
3537bool Type1HalftoneDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfType1HalftoneDictionary** data) {
3538 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3539 if (value == NULL) { return false; }
3540 if (data == NULL) { return true; }
3541 return mapType1HalftoneDictionary(*pdfDoc, *value, (SkPdfType1HalftoneDictionary**)data);
3542}
3543
3544bool Type1HalftoneDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfType1HalftoneDictionary** data) {
3545 if (Type1HalftoneDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3546 if (abr == NULL || *abr == '\0') return false;
3547 return Type1HalftoneDictionaryFromDictionary(pdfDoc, dict, abr, data);
3548}
3549
3550bool isType6HalftoneDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3551 return true;
3552}
3553
3554bool Type6HalftoneDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfType6HalftoneDictionary** data) {
3555 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3556 if (value == NULL) { return false; }
3557 if (data == NULL) { return true; }
3558 return mapType6HalftoneDictionary(*pdfDoc, *value, (SkPdfType6HalftoneDictionary**)data);
3559}
3560
3561bool Type6HalftoneDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfType6HalftoneDictionary** data) {
3562 if (Type6HalftoneDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3563 if (abr == NULL || *abr == '\0') return false;
3564 return Type6HalftoneDictionaryFromDictionary(pdfDoc, dict, abr, data);
3565}
3566
3567bool isType10HalftoneDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3568 return true;
3569}
3570
3571bool Type10HalftoneDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfType10HalftoneDictionary** data) {
3572 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3573 if (value == NULL) { return false; }
3574 if (data == NULL) { return true; }
3575 return mapType10HalftoneDictionary(*pdfDoc, *value, (SkPdfType10HalftoneDictionary**)data);
3576}
3577
3578bool Type10HalftoneDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfType10HalftoneDictionary** data) {
3579 if (Type10HalftoneDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3580 if (abr == NULL || *abr == '\0') return false;
3581 return Type10HalftoneDictionaryFromDictionary(pdfDoc, dict, abr, data);
3582}
3583
3584bool isType16HalftoneDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3585 return true;
3586}
3587
3588bool Type16HalftoneDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfType16HalftoneDictionary** data) {
3589 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3590 if (value == NULL) { return false; }
3591 if (data == NULL) { return true; }
3592 return mapType16HalftoneDictionary(*pdfDoc, *value, (SkPdfType16HalftoneDictionary**)data);
3593}
3594
3595bool Type16HalftoneDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfType16HalftoneDictionary** data) {
3596 if (Type16HalftoneDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3597 if (abr == NULL || *abr == '\0') return false;
3598 return Type16HalftoneDictionaryFromDictionary(pdfDoc, dict, abr, data);
3599}
3600
3601bool isType5HalftoneDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3602 return true;
3603}
3604
3605bool Type5HalftoneDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfType5HalftoneDictionary** data) {
3606 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3607 if (value == NULL) { return false; }
3608 if (data == NULL) { return true; }
3609 return mapType5HalftoneDictionary(*pdfDoc, *value, (SkPdfType5HalftoneDictionary**)data);
3610}
3611
3612bool Type5HalftoneDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfType5HalftoneDictionary** data) {
3613 if (Type5HalftoneDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3614 if (abr == NULL || *abr == '\0') return false;
3615 return Type5HalftoneDictionaryFromDictionary(pdfDoc, dict, abr, data);
3616}
3617
3618bool isSoftMaskDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3619 return true;
3620}
3621
3622bool SoftMaskDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfSoftMaskDictionary** data) {
3623 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3624 if (value == NULL) { return false; }
3625 if (data == NULL) { return true; }
3626 return mapSoftMaskDictionary(*pdfDoc, *value, (SkPdfSoftMaskDictionary**)data);
3627}
3628
3629bool SoftMaskDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfSoftMaskDictionary** data) {
3630 if (SoftMaskDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3631 if (abr == NULL || *abr == '\0') return false;
3632 return SoftMaskDictionaryFromDictionary(pdfDoc, dict, abr, data);
3633}
3634
3635bool isSoftMaskImageDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3636 return true;
3637}
3638
3639bool SoftMaskImageDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfSoftMaskImageDictionary** data) {
3640 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3641 if (value == NULL) { return false; }
3642 if (data == NULL) { return true; }
3643 return mapSoftMaskImageDictionary(*pdfDoc, *value, (SkPdfSoftMaskImageDictionary**)data);
3644}
3645
3646bool SoftMaskImageDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfSoftMaskImageDictionary** data) {
3647 if (SoftMaskImageDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3648 if (abr == NULL || *abr == '\0') return false;
3649 return SoftMaskImageDictionaryFromDictionary(pdfDoc, dict, abr, data);
3650}
3651
3652bool isTransparencyGroupDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3653 return true;
3654}
3655
3656bool TransparencyGroupDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfTransparencyGroupDictionary** data) {
3657 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3658 if (value == NULL) { return false; }
3659 if (data == NULL) { return true; }
3660 return mapTransparencyGroupDictionary(*pdfDoc, *value, (SkPdfTransparencyGroupDictionary**)data);
3661}
3662
3663bool TransparencyGroupDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfTransparencyGroupDictionary** data) {
3664 if (TransparencyGroupDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3665 if (abr == NULL || *abr == '\0') return false;
3666 return TransparencyGroupDictionaryFromDictionary(pdfDoc, dict, abr, data);
3667}
3668
3669bool isViewerPreferencesDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3670 return true;
3671}
3672
3673bool ViewerPreferencesDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfViewerPreferencesDictionary** data) {
3674 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3675 if (value == NULL) { return false; }
3676 if (data == NULL) { return true; }
3677 return mapViewerPreferencesDictionary(*pdfDoc, *value, (SkPdfViewerPreferencesDictionary**)data);
3678}
3679
3680bool ViewerPreferencesDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfViewerPreferencesDictionary** data) {
3681 if (ViewerPreferencesDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3682 if (abr == NULL || *abr == '\0') return false;
3683 return ViewerPreferencesDictionaryFromDictionary(pdfDoc, dict, abr, data);
3684}
3685
3686bool isOutlineDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3687 return true;
3688}
3689
3690bool OutlineDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfOutlineDictionary** data) {
3691 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3692 if (value == NULL) { return false; }
3693 if (data == NULL) { return true; }
3694 return mapOutlineDictionary(*pdfDoc, *value, (SkPdfOutlineDictionary**)data);
3695}
3696
3697bool OutlineDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfOutlineDictionary** data) {
3698 if (OutlineDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3699 if (abr == NULL || *abr == '\0') return false;
3700 return OutlineDictionaryFromDictionary(pdfDoc, dict, abr, data);
3701}
3702
3703bool isOutlineItemDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3704 return true;
3705}
3706
3707bool OutlineItemDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfOutlineItemDictionary** data) {
3708 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3709 if (value == NULL) { return false; }
3710 if (data == NULL) { return true; }
3711 return mapOutlineItemDictionary(*pdfDoc, *value, (SkPdfOutlineItemDictionary**)data);
3712}
3713
3714bool OutlineItemDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfOutlineItemDictionary** data) {
3715 if (OutlineItemDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3716 if (abr == NULL || *abr == '\0') return false;
3717 return OutlineItemDictionaryFromDictionary(pdfDoc, dict, abr, data);
3718}
3719
3720bool isPageLabelDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3721 return true;
3722}
3723
3724bool PageLabelDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfPageLabelDictionary** data) {
3725 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3726 if (value == NULL) { return false; }
3727 if (data == NULL) { return true; }
3728 return mapPageLabelDictionary(*pdfDoc, *value, (SkPdfPageLabelDictionary**)data);
3729}
3730
3731bool PageLabelDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfPageLabelDictionary** data) {
3732 if (PageLabelDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3733 if (abr == NULL || *abr == '\0') return false;
3734 return PageLabelDictionaryFromDictionary(pdfDoc, dict, abr, data);
3735}
3736
3737bool isThreadDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3738 return true;
3739}
3740
3741bool ThreadDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfThreadDictionary** data) {
3742 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3743 if (value == NULL) { return false; }
3744 if (data == NULL) { return true; }
3745 return mapThreadDictionary(*pdfDoc, *value, (SkPdfThreadDictionary**)data);
3746}
3747
3748bool ThreadDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfThreadDictionary** data) {
3749 if (ThreadDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3750 if (abr == NULL || *abr == '\0') return false;
3751 return ThreadDictionaryFromDictionary(pdfDoc, dict, abr, data);
3752}
3753
3754bool isBeadDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3755 return true;
3756}
3757
3758bool BeadDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfBeadDictionary** data) {
3759 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3760 if (value == NULL) { return false; }
3761 if (data == NULL) { return true; }
3762 return mapBeadDictionary(*pdfDoc, *value, (SkPdfBeadDictionary**)data);
3763}
3764
3765bool BeadDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfBeadDictionary** data) {
3766 if (BeadDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3767 if (abr == NULL || *abr == '\0') return false;
3768 return BeadDictionaryFromDictionary(pdfDoc, dict, abr, data);
3769}
3770
3771bool isTransitionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3772 return true;
3773}
3774
3775bool TransitionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfTransitionDictionary** data) {
3776 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3777 if (value == NULL) { return false; }
3778 if (data == NULL) { return true; }
3779 return mapTransitionDictionary(*pdfDoc, *value, (SkPdfTransitionDictionary**)data);
3780}
3781
3782bool TransitionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfTransitionDictionary** data) {
3783 if (TransitionDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3784 if (abr == NULL || *abr == '\0') return false;
3785 return TransitionDictionaryFromDictionary(pdfDoc, dict, abr, data);
3786}
3787
3788bool isAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3789 return true;
3790}
3791
3792bool AnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfAnnotationDictionary** data) {
3793 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3794 if (value == NULL) { return false; }
3795 if (data == NULL) { return true; }
3796 return mapAnnotationDictionary(*pdfDoc, *value, (SkPdfAnnotationDictionary**)data);
3797}
3798
3799bool AnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfAnnotationDictionary** data) {
3800 if (AnnotationDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3801 if (abr == NULL || *abr == '\0') return false;
3802 return AnnotationDictionaryFromDictionary(pdfDoc, dict, abr, data);
3803}
3804
3805bool isBorderStyleDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3806 return true;
3807}
3808
3809bool BorderStyleDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfBorderStyleDictionary** data) {
3810 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3811 if (value == NULL) { return false; }
3812 if (data == NULL) { return true; }
3813 return mapBorderStyleDictionary(*pdfDoc, *value, (SkPdfBorderStyleDictionary**)data);
3814}
3815
3816bool BorderStyleDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfBorderStyleDictionary** data) {
3817 if (BorderStyleDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3818 if (abr == NULL || *abr == '\0') return false;
3819 return BorderStyleDictionaryFromDictionary(pdfDoc, dict, abr, data);
3820}
3821
3822bool isAppearanceDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3823 return true;
3824}
3825
3826bool AppearanceDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfAppearanceDictionary** data) {
3827 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3828 if (value == NULL) { return false; }
3829 if (data == NULL) { return true; }
3830 return mapAppearanceDictionary(*pdfDoc, *value, (SkPdfAppearanceDictionary**)data);
3831}
3832
3833bool AppearanceDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfAppearanceDictionary** data) {
3834 if (AppearanceDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3835 if (abr == NULL || *abr == '\0') return false;
3836 return AppearanceDictionaryFromDictionary(pdfDoc, dict, abr, data);
3837}
3838
3839bool isTextAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3840 return true;
3841}
3842
3843bool TextAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfTextAnnotationDictionary** data) {
3844 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3845 if (value == NULL) { return false; }
3846 if (data == NULL) { return true; }
3847 return mapTextAnnotationDictionary(*pdfDoc, *value, (SkPdfTextAnnotationDictionary**)data);
3848}
3849
3850bool TextAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfTextAnnotationDictionary** data) {
3851 if (TextAnnotationDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3852 if (abr == NULL || *abr == '\0') return false;
3853 return TextAnnotationDictionaryFromDictionary(pdfDoc, dict, abr, data);
3854}
3855
3856bool isALinkAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3857 return true;
3858}
3859
3860bool ALinkAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfALinkAnnotationDictionary** data) {
3861 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3862 if (value == NULL) { return false; }
3863 if (data == NULL) { return true; }
3864 return mapALinkAnnotationDictionary(*pdfDoc, *value, (SkPdfALinkAnnotationDictionary**)data);
3865}
3866
3867bool ALinkAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfALinkAnnotationDictionary** data) {
3868 if (ALinkAnnotationDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3869 if (abr == NULL || *abr == '\0') return false;
3870 return ALinkAnnotationDictionaryFromDictionary(pdfDoc, dict, abr, data);
3871}
3872
3873bool isFreeTextAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3874 return true;
3875}
3876
3877bool FreeTextAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfFreeTextAnnotationDictionary** data) {
3878 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3879 if (value == NULL) { return false; }
3880 if (data == NULL) { return true; }
3881 return mapFreeTextAnnotationDictionary(*pdfDoc, *value, (SkPdfFreeTextAnnotationDictionary**)data);
3882}
3883
3884bool FreeTextAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfFreeTextAnnotationDictionary** data) {
3885 if (FreeTextAnnotationDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3886 if (abr == NULL || *abr == '\0') return false;
3887 return FreeTextAnnotationDictionaryFromDictionary(pdfDoc, dict, abr, data);
3888}
3889
3890bool isLineAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3891 return true;
3892}
3893
3894bool LineAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfLineAnnotationDictionary** data) {
3895 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3896 if (value == NULL) { return false; }
3897 if (data == NULL) { return true; }
3898 return mapLineAnnotationDictionary(*pdfDoc, *value, (SkPdfLineAnnotationDictionary**)data);
3899}
3900
3901bool LineAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfLineAnnotationDictionary** data) {
3902 if (LineAnnotationDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3903 if (abr == NULL || *abr == '\0') return false;
3904 return LineAnnotationDictionaryFromDictionary(pdfDoc, dict, abr, data);
3905}
3906
3907bool isSquareOrCircleAnnotation(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3908 return true;
3909}
3910
3911bool SquareOrCircleAnnotationFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfSquareOrCircleAnnotation** data) {
3912 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3913 if (value == NULL) { return false; }
3914 if (data == NULL) { return true; }
3915 return mapSquareOrCircleAnnotation(*pdfDoc, *value, (SkPdfSquareOrCircleAnnotation**)data);
3916}
3917
3918bool SquareOrCircleAnnotationFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfSquareOrCircleAnnotation** data) {
3919 if (SquareOrCircleAnnotationFromDictionary(pdfDoc, dict, key, data)) return true;
3920 if (abr == NULL || *abr == '\0') return false;
3921 return SquareOrCircleAnnotationFromDictionary(pdfDoc, dict, abr, data);
3922}
3923
3924bool isMarkupAnnotationsDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3925 return true;
3926}
3927
3928bool MarkupAnnotationsDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfMarkupAnnotationsDictionary** data) {
3929 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3930 if (value == NULL) { return false; }
3931 if (data == NULL) { return true; }
3932 return mapMarkupAnnotationsDictionary(*pdfDoc, *value, (SkPdfMarkupAnnotationsDictionary**)data);
3933}
3934
3935bool MarkupAnnotationsDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfMarkupAnnotationsDictionary** data) {
3936 if (MarkupAnnotationsDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3937 if (abr == NULL || *abr == '\0') return false;
3938 return MarkupAnnotationsDictionaryFromDictionary(pdfDoc, dict, abr, data);
3939}
3940
3941bool isRubberStampAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3942 return true;
3943}
3944
3945bool RubberStampAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfRubberStampAnnotationDictionary** data) {
3946 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3947 if (value == NULL) { return false; }
3948 if (data == NULL) { return true; }
3949 return mapRubberStampAnnotationDictionary(*pdfDoc, *value, (SkPdfRubberStampAnnotationDictionary**)data);
3950}
3951
3952bool RubberStampAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfRubberStampAnnotationDictionary** data) {
3953 if (RubberStampAnnotationDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3954 if (abr == NULL || *abr == '\0') return false;
3955 return RubberStampAnnotationDictionaryFromDictionary(pdfDoc, dict, abr, data);
3956}
3957
3958bool isInkAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3959 return true;
3960}
3961
3962bool InkAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfInkAnnotationDictionary** data) {
3963 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3964 if (value == NULL) { return false; }
3965 if (data == NULL) { return true; }
3966 return mapInkAnnotationDictionary(*pdfDoc, *value, (SkPdfInkAnnotationDictionary**)data);
3967}
3968
3969bool InkAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfInkAnnotationDictionary** data) {
3970 if (InkAnnotationDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3971 if (abr == NULL || *abr == '\0') return false;
3972 return InkAnnotationDictionaryFromDictionary(pdfDoc, dict, abr, data);
3973}
3974
3975bool isPopUpAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3976 return true;
3977}
3978
3979bool PopUpAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfPopUpAnnotationDictionary** data) {
3980 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3981 if (value == NULL) { return false; }
3982 if (data == NULL) { return true; }
3983 return mapPopUpAnnotationDictionary(*pdfDoc, *value, (SkPdfPopUpAnnotationDictionary**)data);
3984}
3985
3986bool PopUpAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfPopUpAnnotationDictionary** data) {
3987 if (PopUpAnnotationDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
3988 if (abr == NULL || *abr == '\0') return false;
3989 return PopUpAnnotationDictionaryFromDictionary(pdfDoc, dict, abr, data);
3990}
3991
3992bool isFileAttachmentAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
3993 return true;
3994}
3995
3996bool FileAttachmentAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfFileAttachmentAnnotationDictionary** data) {
3997 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
3998 if (value == NULL) { return false; }
3999 if (data == NULL) { return true; }
4000 return mapFileAttachmentAnnotationDictionary(*pdfDoc, *value, (SkPdfFileAttachmentAnnotationDictionary**)data);
4001}
4002
4003bool FileAttachmentAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfFileAttachmentAnnotationDictionary** data) {
4004 if (FileAttachmentAnnotationDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4005 if (abr == NULL || *abr == '\0') return false;
4006 return FileAttachmentAnnotationDictionaryFromDictionary(pdfDoc, dict, abr, data);
4007}
4008
4009bool isSoundAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4010 return true;
4011}
4012
4013bool SoundAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfSoundAnnotationDictionary** data) {
4014 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4015 if (value == NULL) { return false; }
4016 if (data == NULL) { return true; }
4017 return mapSoundAnnotationDictionary(*pdfDoc, *value, (SkPdfSoundAnnotationDictionary**)data);
4018}
4019
4020bool SoundAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfSoundAnnotationDictionary** data) {
4021 if (SoundAnnotationDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4022 if (abr == NULL || *abr == '\0') return false;
4023 return SoundAnnotationDictionaryFromDictionary(pdfDoc, dict, abr, data);
4024}
4025
4026bool isMovieAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4027 return true;
4028}
4029
4030bool MovieAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfMovieAnnotationDictionary** data) {
4031 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4032 if (value == NULL) { return false; }
4033 if (data == NULL) { return true; }
4034 return mapMovieAnnotationDictionary(*pdfDoc, *value, (SkPdfMovieAnnotationDictionary**)data);
4035}
4036
4037bool MovieAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfMovieAnnotationDictionary** data) {
4038 if (MovieAnnotationDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4039 if (abr == NULL || *abr == '\0') return false;
4040 return MovieAnnotationDictionaryFromDictionary(pdfDoc, dict, abr, data);
4041}
4042
4043bool isWidgetAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4044 return true;
4045}
4046
4047bool WidgetAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfWidgetAnnotationDictionary** data) {
4048 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4049 if (value == NULL) { return false; }
4050 if (data == NULL) { return true; }
4051 return mapWidgetAnnotationDictionary(*pdfDoc, *value, (SkPdfWidgetAnnotationDictionary**)data);
4052}
4053
4054bool WidgetAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfWidgetAnnotationDictionary** data) {
4055 if (WidgetAnnotationDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4056 if (abr == NULL || *abr == '\0') return false;
4057 return WidgetAnnotationDictionaryFromDictionary(pdfDoc, dict, abr, data);
4058}
4059
4060bool isActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4061 return true;
4062}
4063
4064bool ActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfActionDictionary** data) {
4065 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4066 if (value == NULL) { return false; }
4067 if (data == NULL) { return true; }
4068 return mapActionDictionary(*pdfDoc, *value, (SkPdfActionDictionary**)data);
4069}
4070
4071bool ActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfActionDictionary** data) {
4072 if (ActionDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4073 if (abr == NULL || *abr == '\0') return false;
4074 return ActionDictionaryFromDictionary(pdfDoc, dict, abr, data);
4075}
4076
4077bool isAnnotationActionsDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4078 return true;
4079}
4080
4081bool AnnotationActionsDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfAnnotationActionsDictionary** data) {
4082 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4083 if (value == NULL) { return false; }
4084 if (data == NULL) { return true; }
4085 return mapAnnotationActionsDictionary(*pdfDoc, *value, (SkPdfAnnotationActionsDictionary**)data);
4086}
4087
4088bool AnnotationActionsDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfAnnotationActionsDictionary** data) {
4089 if (AnnotationActionsDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4090 if (abr == NULL || *abr == '\0') return false;
4091 return AnnotationActionsDictionaryFromDictionary(pdfDoc, dict, abr, data);
4092}
4093
4094bool isPageObjectActionsDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4095 return true;
4096}
4097
4098bool PageObjectActionsDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfPageObjectActionsDictionary** data) {
4099 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4100 if (value == NULL) { return false; }
4101 if (data == NULL) { return true; }
4102 return mapPageObjectActionsDictionary(*pdfDoc, *value, (SkPdfPageObjectActionsDictionary**)data);
4103}
4104
4105bool PageObjectActionsDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfPageObjectActionsDictionary** data) {
4106 if (PageObjectActionsDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4107 if (abr == NULL || *abr == '\0') return false;
4108 return PageObjectActionsDictionaryFromDictionary(pdfDoc, dict, abr, data);
4109}
4110
4111bool isFormFieldActionsDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4112 return true;
4113}
4114
4115bool FormFieldActionsDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfFormFieldActionsDictionary** data) {
4116 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4117 if (value == NULL) { return false; }
4118 if (data == NULL) { return true; }
4119 return mapFormFieldActionsDictionary(*pdfDoc, *value, (SkPdfFormFieldActionsDictionary**)data);
4120}
4121
4122bool FormFieldActionsDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfFormFieldActionsDictionary** data) {
4123 if (FormFieldActionsDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4124 if (abr == NULL || *abr == '\0') return false;
4125 return FormFieldActionsDictionaryFromDictionary(pdfDoc, dict, abr, data);
4126}
4127
4128bool isDocumentCatalogActionsDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4129 return true;
4130}
4131
4132bool DocumentCatalogActionsDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfDocumentCatalogActionsDictionary** data) {
4133 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4134 if (value == NULL) { return false; }
4135 if (data == NULL) { return true; }
4136 return mapDocumentCatalogActionsDictionary(*pdfDoc, *value, (SkPdfDocumentCatalogActionsDictionary**)data);
4137}
4138
4139bool DocumentCatalogActionsDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfDocumentCatalogActionsDictionary** data) {
4140 if (DocumentCatalogActionsDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4141 if (abr == NULL || *abr == '\0') return false;
4142 return DocumentCatalogActionsDictionaryFromDictionary(pdfDoc, dict, abr, data);
4143}
4144
4145bool isGoToActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4146 return true;
4147}
4148
4149bool GoToActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfGoToActionDictionary** data) {
4150 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4151 if (value == NULL) { return false; }
4152 if (data == NULL) { return true; }
4153 return mapGoToActionDictionary(*pdfDoc, *value, (SkPdfGoToActionDictionary**)data);
4154}
4155
4156bool GoToActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfGoToActionDictionary** data) {
4157 if (GoToActionDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4158 if (abr == NULL || *abr == '\0') return false;
4159 return GoToActionDictionaryFromDictionary(pdfDoc, dict, abr, data);
4160}
4161
4162bool isRemoteGoToActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4163 return true;
4164}
4165
4166bool RemoteGoToActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfRemoteGoToActionDictionary** data) {
4167 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4168 if (value == NULL) { return false; }
4169 if (data == NULL) { return true; }
4170 return mapRemoteGoToActionDictionary(*pdfDoc, *value, (SkPdfRemoteGoToActionDictionary**)data);
4171}
4172
4173bool RemoteGoToActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfRemoteGoToActionDictionary** data) {
4174 if (RemoteGoToActionDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4175 if (abr == NULL || *abr == '\0') return false;
4176 return RemoteGoToActionDictionaryFromDictionary(pdfDoc, dict, abr, data);
4177}
4178
4179bool isLaunchActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4180 return true;
4181}
4182
4183bool LaunchActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfLaunchActionDictionary** data) {
4184 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4185 if (value == NULL) { return false; }
4186 if (data == NULL) { return true; }
4187 return mapLaunchActionDictionary(*pdfDoc, *value, (SkPdfLaunchActionDictionary**)data);
4188}
4189
4190bool LaunchActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfLaunchActionDictionary** data) {
4191 if (LaunchActionDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4192 if (abr == NULL || *abr == '\0') return false;
4193 return LaunchActionDictionaryFromDictionary(pdfDoc, dict, abr, data);
4194}
4195
4196bool isWindowsLaunchActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4197 return true;
4198}
4199
4200bool WindowsLaunchActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfWindowsLaunchActionDictionary** data) {
4201 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4202 if (value == NULL) { return false; }
4203 if (data == NULL) { return true; }
4204 return mapWindowsLaunchActionDictionary(*pdfDoc, *value, (SkPdfWindowsLaunchActionDictionary**)data);
4205}
4206
4207bool WindowsLaunchActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfWindowsLaunchActionDictionary** data) {
4208 if (WindowsLaunchActionDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4209 if (abr == NULL || *abr == '\0') return false;
4210 return WindowsLaunchActionDictionaryFromDictionary(pdfDoc, dict, abr, data);
4211}
4212
4213bool isThreadActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4214 return true;
4215}
4216
4217bool ThreadActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfThreadActionDictionary** data) {
4218 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4219 if (value == NULL) { return false; }
4220 if (data == NULL) { return true; }
4221 return mapThreadActionDictionary(*pdfDoc, *value, (SkPdfThreadActionDictionary**)data);
4222}
4223
4224bool ThreadActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfThreadActionDictionary** data) {
4225 if (ThreadActionDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4226 if (abr == NULL || *abr == '\0') return false;
4227 return ThreadActionDictionaryFromDictionary(pdfDoc, dict, abr, data);
4228}
4229
4230bool isURIActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4231 return true;
4232}
4233
4234bool URIActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfURIActionDictionary** data) {
4235 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4236 if (value == NULL) { return false; }
4237 if (data == NULL) { return true; }
4238 return mapURIActionDictionary(*pdfDoc, *value, (SkPdfURIActionDictionary**)data);
4239}
4240
4241bool URIActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfURIActionDictionary** data) {
4242 if (URIActionDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4243 if (abr == NULL || *abr == '\0') return false;
4244 return URIActionDictionaryFromDictionary(pdfDoc, dict, abr, data);
4245}
4246
4247bool isURIDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4248 return true;
4249}
4250
4251bool URIDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfURIDictionary** data) {
4252 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4253 if (value == NULL) { return false; }
4254 if (data == NULL) { return true; }
4255 return mapURIDictionary(*pdfDoc, *value, (SkPdfURIDictionary**)data);
4256}
4257
4258bool URIDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfURIDictionary** data) {
4259 if (URIDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4260 if (abr == NULL || *abr == '\0') return false;
4261 return URIDictionaryFromDictionary(pdfDoc, dict, abr, data);
4262}
4263
4264bool isSoundActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4265 return true;
4266}
4267
4268bool SoundActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfSoundActionDictionary** data) {
4269 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4270 if (value == NULL) { return false; }
4271 if (data == NULL) { return true; }
4272 return mapSoundActionDictionary(*pdfDoc, *value, (SkPdfSoundActionDictionary**)data);
4273}
4274
4275bool SoundActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfSoundActionDictionary** data) {
4276 if (SoundActionDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4277 if (abr == NULL || *abr == '\0') return false;
4278 return SoundActionDictionaryFromDictionary(pdfDoc, dict, abr, data);
4279}
4280
4281bool isMovieActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4282 return true;
4283}
4284
4285bool MovieActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfMovieActionDictionary** data) {
4286 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4287 if (value == NULL) { return false; }
4288 if (data == NULL) { return true; }
4289 return mapMovieActionDictionary(*pdfDoc, *value, (SkPdfMovieActionDictionary**)data);
4290}
4291
4292bool MovieActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfMovieActionDictionary** data) {
4293 if (MovieActionDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4294 if (abr == NULL || *abr == '\0') return false;
4295 return MovieActionDictionaryFromDictionary(pdfDoc, dict, abr, data);
4296}
4297
4298bool isHideActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4299 return true;
4300}
4301
4302bool HideActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfHideActionDictionary** data) {
4303 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4304 if (value == NULL) { return false; }
4305 if (data == NULL) { return true; }
4306 return mapHideActionDictionary(*pdfDoc, *value, (SkPdfHideActionDictionary**)data);
4307}
4308
4309bool HideActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfHideActionDictionary** data) {
4310 if (HideActionDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4311 if (abr == NULL || *abr == '\0') return false;
4312 return HideActionDictionaryFromDictionary(pdfDoc, dict, abr, data);
4313}
4314
4315bool isNamedActionsDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4316 return true;
4317}
4318
4319bool NamedActionsDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfNamedActionsDictionary** data) {
4320 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4321 if (value == NULL) { return false; }
4322 if (data == NULL) { return true; }
4323 return mapNamedActionsDictionary(*pdfDoc, *value, (SkPdfNamedActionsDictionary**)data);
4324}
4325
4326bool NamedActionsDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfNamedActionsDictionary** data) {
4327 if (NamedActionsDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4328 if (abr == NULL || *abr == '\0') return false;
4329 return NamedActionsDictionaryFromDictionary(pdfDoc, dict, abr, data);
4330}
4331
4332bool isInteractiveFormDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4333 return true;
4334}
4335
4336bool InteractiveFormDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfInteractiveFormDictionary** data) {
4337 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4338 if (value == NULL) { return false; }
4339 if (data == NULL) { return true; }
4340 return mapInteractiveFormDictionary(*pdfDoc, *value, (SkPdfInteractiveFormDictionary**)data);
4341}
4342
4343bool InteractiveFormDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfInteractiveFormDictionary** data) {
4344 if (InteractiveFormDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4345 if (abr == NULL || *abr == '\0') return false;
4346 return InteractiveFormDictionaryFromDictionary(pdfDoc, dict, abr, data);
4347}
4348
4349bool isFieldDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4350 return true;
4351}
4352
4353bool FieldDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfFieldDictionary** data) {
4354 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4355 if (value == NULL) { return false; }
4356 if (data == NULL) { return true; }
4357 return mapFieldDictionary(*pdfDoc, *value, (SkPdfFieldDictionary**)data);
4358}
4359
4360bool FieldDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfFieldDictionary** data) {
4361 if (FieldDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4362 if (abr == NULL || *abr == '\0') return false;
4363 return FieldDictionaryFromDictionary(pdfDoc, dict, abr, data);
4364}
4365
4366bool isVariableTextFieldDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4367 return true;
4368}
4369
4370bool VariableTextFieldDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfVariableTextFieldDictionary** data) {
4371 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4372 if (value == NULL) { return false; }
4373 if (data == NULL) { return true; }
4374 return mapVariableTextFieldDictionary(*pdfDoc, *value, (SkPdfVariableTextFieldDictionary**)data);
4375}
4376
4377bool VariableTextFieldDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfVariableTextFieldDictionary** data) {
4378 if (VariableTextFieldDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4379 if (abr == NULL || *abr == '\0') return false;
4380 return VariableTextFieldDictionaryFromDictionary(pdfDoc, dict, abr, data);
4381}
4382
4383bool isAppearanceCharacteristicsDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4384 return true;
4385}
4386
4387bool AppearanceCharacteristicsDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfAppearanceCharacteristicsDictionary** data) {
4388 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4389 if (value == NULL) { return false; }
4390 if (data == NULL) { return true; }
4391 return mapAppearanceCharacteristicsDictionary(*pdfDoc, *value, (SkPdfAppearanceCharacteristicsDictionary**)data);
4392}
4393
4394bool AppearanceCharacteristicsDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfAppearanceCharacteristicsDictionary** data) {
4395 if (AppearanceCharacteristicsDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4396 if (abr == NULL || *abr == '\0') return false;
4397 return AppearanceCharacteristicsDictionaryFromDictionary(pdfDoc, dict, abr, data);
4398}
4399
4400bool isCheckboxFieldDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4401 return true;
4402}
4403
4404bool CheckboxFieldDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfCheckboxFieldDictionary** data) {
4405 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4406 if (value == NULL) { return false; }
4407 if (data == NULL) { return true; }
4408 return mapCheckboxFieldDictionary(*pdfDoc, *value, (SkPdfCheckboxFieldDictionary**)data);
4409}
4410
4411bool CheckboxFieldDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfCheckboxFieldDictionary** data) {
4412 if (CheckboxFieldDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4413 if (abr == NULL || *abr == '\0') return false;
4414 return CheckboxFieldDictionaryFromDictionary(pdfDoc, dict, abr, data);
4415}
4416
4417bool isRadioButtonFieldDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4418 return true;
4419}
4420
4421bool RadioButtonFieldDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfRadioButtonFieldDictionary** data) {
4422 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4423 if (value == NULL) { return false; }
4424 if (data == NULL) { return true; }
4425 return mapRadioButtonFieldDictionary(*pdfDoc, *value, (SkPdfRadioButtonFieldDictionary**)data);
4426}
4427
4428bool RadioButtonFieldDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfRadioButtonFieldDictionary** data) {
4429 if (RadioButtonFieldDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4430 if (abr == NULL || *abr == '\0') return false;
4431 return RadioButtonFieldDictionaryFromDictionary(pdfDoc, dict, abr, data);
4432}
4433
4434bool isTextFieldDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4435 return true;
4436}
4437
4438bool TextFieldDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfTextFieldDictionary** data) {
4439 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4440 if (value == NULL) { return false; }
4441 if (data == NULL) { return true; }
4442 return mapTextFieldDictionary(*pdfDoc, *value, (SkPdfTextFieldDictionary**)data);
4443}
4444
4445bool TextFieldDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfTextFieldDictionary** data) {
4446 if (TextFieldDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4447 if (abr == NULL || *abr == '\0') return false;
4448 return TextFieldDictionaryFromDictionary(pdfDoc, dict, abr, data);
4449}
4450
4451bool isChoiceFieldDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4452 return true;
4453}
4454
4455bool ChoiceFieldDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfChoiceFieldDictionary** data) {
4456 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4457 if (value == NULL) { return false; }
4458 if (data == NULL) { return true; }
4459 return mapChoiceFieldDictionary(*pdfDoc, *value, (SkPdfChoiceFieldDictionary**)data);
4460}
4461
4462bool ChoiceFieldDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfChoiceFieldDictionary** data) {
4463 if (ChoiceFieldDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4464 if (abr == NULL || *abr == '\0') return false;
4465 return ChoiceFieldDictionaryFromDictionary(pdfDoc, dict, abr, data);
4466}
4467
4468bool isSignatureDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4469 return true;
4470}
4471
4472bool SignatureDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfSignatureDictionary** data) {
4473 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4474 if (value == NULL) { return false; }
4475 if (data == NULL) { return true; }
4476 return mapSignatureDictionary(*pdfDoc, *value, (SkPdfSignatureDictionary**)data);
4477}
4478
4479bool SignatureDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfSignatureDictionary** data) {
4480 if (SignatureDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4481 if (abr == NULL || *abr == '\0') return false;
4482 return SignatureDictionaryFromDictionary(pdfDoc, dict, abr, data);
4483}
4484
4485bool isSubmitFormActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4486 return true;
4487}
4488
4489bool SubmitFormActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfSubmitFormActionDictionary** data) {
4490 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4491 if (value == NULL) { return false; }
4492 if (data == NULL) { return true; }
4493 return mapSubmitFormActionDictionary(*pdfDoc, *value, (SkPdfSubmitFormActionDictionary**)data);
4494}
4495
4496bool SubmitFormActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfSubmitFormActionDictionary** data) {
4497 if (SubmitFormActionDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4498 if (abr == NULL || *abr == '\0') return false;
4499 return SubmitFormActionDictionaryFromDictionary(pdfDoc, dict, abr, data);
4500}
4501
4502bool isResetFormActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4503 return true;
4504}
4505
4506bool ResetFormActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfResetFormActionDictionary** data) {
4507 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4508 if (value == NULL) { return false; }
4509 if (data == NULL) { return true; }
4510 return mapResetFormActionDictionary(*pdfDoc, *value, (SkPdfResetFormActionDictionary**)data);
4511}
4512
4513bool ResetFormActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfResetFormActionDictionary** data) {
4514 if (ResetFormActionDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4515 if (abr == NULL || *abr == '\0') return false;
4516 return ResetFormActionDictionaryFromDictionary(pdfDoc, dict, abr, data);
4517}
4518
4519bool isImportDataActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4520 return true;
4521}
4522
4523bool ImportDataActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfImportDataActionDictionary** data) {
4524 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4525 if (value == NULL) { return false; }
4526 if (data == NULL) { return true; }
4527 return mapImportDataActionDictionary(*pdfDoc, *value, (SkPdfImportDataActionDictionary**)data);
4528}
4529
4530bool ImportDataActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfImportDataActionDictionary** data) {
4531 if (ImportDataActionDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4532 if (abr == NULL || *abr == '\0') return false;
4533 return ImportDataActionDictionaryFromDictionary(pdfDoc, dict, abr, data);
4534}
4535
4536bool isJavascriptActionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4537 return true;
4538}
4539
4540bool JavascriptActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfJavascriptActionDictionary** data) {
4541 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4542 if (value == NULL) { return false; }
4543 if (data == NULL) { return true; }
4544 return mapJavascriptActionDictionary(*pdfDoc, *value, (SkPdfJavascriptActionDictionary**)data);
4545}
4546
4547bool JavascriptActionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfJavascriptActionDictionary** data) {
4548 if (JavascriptActionDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4549 if (abr == NULL || *abr == '\0') return false;
4550 return JavascriptActionDictionaryFromDictionary(pdfDoc, dict, abr, data);
4551}
4552
4553bool isFDFTrailerDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4554 return true;
4555}
4556
4557bool FDFTrailerDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfFDFTrailerDictionary** data) {
4558 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4559 if (value == NULL) { return false; }
4560 if (data == NULL) { return true; }
4561 return mapFDFTrailerDictionary(*pdfDoc, *value, (SkPdfFDFTrailerDictionary**)data);
4562}
4563
4564bool FDFTrailerDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfFDFTrailerDictionary** data) {
4565 if (FDFTrailerDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4566 if (abr == NULL || *abr == '\0') return false;
4567 return FDFTrailerDictionaryFromDictionary(pdfDoc, dict, abr, data);
4568}
4569
4570bool isFDFCatalogDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4571 return true;
4572}
4573
4574bool FDFCatalogDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfFDFCatalogDictionary** data) {
4575 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4576 if (value == NULL) { return false; }
4577 if (data == NULL) { return true; }
4578 return mapFDFCatalogDictionary(*pdfDoc, *value, (SkPdfFDFCatalogDictionary**)data);
4579}
4580
4581bool FDFCatalogDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfFDFCatalogDictionary** data) {
4582 if (FDFCatalogDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4583 if (abr == NULL || *abr == '\0') return false;
4584 return FDFCatalogDictionaryFromDictionary(pdfDoc, dict, abr, data);
4585}
4586
4587bool isFDFDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4588 return true;
4589}
4590
4591bool FDFDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfFDFDictionary** data) {
4592 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4593 if (value == NULL) { return false; }
4594 if (data == NULL) { return true; }
4595 return mapFDFDictionary(*pdfDoc, *value, (SkPdfFDFDictionary**)data);
4596}
4597
4598bool FDFDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfFDFDictionary** data) {
4599 if (FDFDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4600 if (abr == NULL || *abr == '\0') return false;
4601 return FDFDictionaryFromDictionary(pdfDoc, dict, abr, data);
4602}
4603
4604bool isEncryptedEmbeddedFileStreamDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4605 return true;
4606}
4607
4608bool EncryptedEmbeddedFileStreamDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfEncryptedEmbeddedFileStreamDictionary** data) {
4609 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4610 if (value == NULL) { return false; }
4611 if (data == NULL) { return true; }
4612 return mapEncryptedEmbeddedFileStreamDictionary(*pdfDoc, *value, (SkPdfEncryptedEmbeddedFileStreamDictionary**)data);
4613}
4614
4615bool EncryptedEmbeddedFileStreamDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfEncryptedEmbeddedFileStreamDictionary** data) {
4616 if (EncryptedEmbeddedFileStreamDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4617 if (abr == NULL || *abr == '\0') return false;
4618 return EncryptedEmbeddedFileStreamDictionaryFromDictionary(pdfDoc, dict, abr, data);
4619}
4620
4621bool isJavascriptDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4622 return true;
4623}
4624
4625bool JavascriptDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfJavascriptDictionary** data) {
4626 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4627 if (value == NULL) { return false; }
4628 if (data == NULL) { return true; }
4629 return mapJavascriptDictionary(*pdfDoc, *value, (SkPdfJavascriptDictionary**)data);
4630}
4631
4632bool JavascriptDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfJavascriptDictionary** data) {
4633 if (JavascriptDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4634 if (abr == NULL || *abr == '\0') return false;
4635 return JavascriptDictionaryFromDictionary(pdfDoc, dict, abr, data);
4636}
4637
4638bool isFDFFieldDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4639 return true;
4640}
4641
4642bool FDFFieldDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfFDFFieldDictionary** data) {
4643 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4644 if (value == NULL) { return false; }
4645 if (data == NULL) { return true; }
4646 return mapFDFFieldDictionary(*pdfDoc, *value, (SkPdfFDFFieldDictionary**)data);
4647}
4648
4649bool FDFFieldDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfFDFFieldDictionary** data) {
4650 if (FDFFieldDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4651 if (abr == NULL || *abr == '\0') return false;
4652 return FDFFieldDictionaryFromDictionary(pdfDoc, dict, abr, data);
4653}
4654
4655bool isIconFitDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4656 return true;
4657}
4658
4659bool IconFitDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfIconFitDictionary** data) {
4660 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4661 if (value == NULL) { return false; }
4662 if (data == NULL) { return true; }
4663 return mapIconFitDictionary(*pdfDoc, *value, (SkPdfIconFitDictionary**)data);
4664}
4665
4666bool IconFitDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfIconFitDictionary** data) {
4667 if (IconFitDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4668 if (abr == NULL || *abr == '\0') return false;
4669 return IconFitDictionaryFromDictionary(pdfDoc, dict, abr, data);
4670}
4671
4672bool isFDFPageDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4673 return true;
4674}
4675
4676bool FDFPageDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfFDFPageDictionary** data) {
4677 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4678 if (value == NULL) { return false; }
4679 if (data == NULL) { return true; }
4680 return mapFDFPageDictionary(*pdfDoc, *value, (SkPdfFDFPageDictionary**)data);
4681}
4682
4683bool FDFPageDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfFDFPageDictionary** data) {
4684 if (FDFPageDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4685 if (abr == NULL || *abr == '\0') return false;
4686 return FDFPageDictionaryFromDictionary(pdfDoc, dict, abr, data);
4687}
4688
4689bool isFDFTemplateDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4690 return true;
4691}
4692
4693bool FDFTemplateDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfFDFTemplateDictionary** data) {
4694 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4695 if (value == NULL) { return false; }
4696 if (data == NULL) { return true; }
4697 return mapFDFTemplateDictionary(*pdfDoc, *value, (SkPdfFDFTemplateDictionary**)data);
4698}
4699
4700bool FDFTemplateDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfFDFTemplateDictionary** data) {
4701 if (FDFTemplateDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4702 if (abr == NULL || *abr == '\0') return false;
4703 return FDFTemplateDictionaryFromDictionary(pdfDoc, dict, abr, data);
4704}
4705
4706bool isFDFNamedPageReferenceDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4707 return true;
4708}
4709
4710bool FDFNamedPageReferenceDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfFDFNamedPageReferenceDictionary** data) {
4711 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4712 if (value == NULL) { return false; }
4713 if (data == NULL) { return true; }
4714 return mapFDFNamedPageReferenceDictionary(*pdfDoc, *value, (SkPdfFDFNamedPageReferenceDictionary**)data);
4715}
4716
4717bool FDFNamedPageReferenceDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfFDFNamedPageReferenceDictionary** data) {
4718 if (FDFNamedPageReferenceDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4719 if (abr == NULL || *abr == '\0') return false;
4720 return FDFNamedPageReferenceDictionaryFromDictionary(pdfDoc, dict, abr, data);
4721}
4722
4723bool isFDFFileAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4724 return true;
4725}
4726
4727bool FDFFileAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfFDFFileAnnotationDictionary** data) {
4728 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4729 if (value == NULL) { return false; }
4730 if (data == NULL) { return true; }
4731 return mapFDFFileAnnotationDictionary(*pdfDoc, *value, (SkPdfFDFFileAnnotationDictionary**)data);
4732}
4733
4734bool FDFFileAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfFDFFileAnnotationDictionary** data) {
4735 if (FDFFileAnnotationDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4736 if (abr == NULL || *abr == '\0') return false;
4737 return FDFFileAnnotationDictionaryFromDictionary(pdfDoc, dict, abr, data);
4738}
4739
4740bool isSoundObjectDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4741 return true;
4742}
4743
4744bool SoundObjectDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfSoundObjectDictionary** data) {
4745 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4746 if (value == NULL) { return false; }
4747 if (data == NULL) { return true; }
4748 return mapSoundObjectDictionary(*pdfDoc, *value, (SkPdfSoundObjectDictionary**)data);
4749}
4750
4751bool SoundObjectDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfSoundObjectDictionary** data) {
4752 if (SoundObjectDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4753 if (abr == NULL || *abr == '\0') return false;
4754 return SoundObjectDictionaryFromDictionary(pdfDoc, dict, abr, data);
4755}
4756
4757bool isMovieDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4758 return true;
4759}
4760
4761bool MovieDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfMovieDictionary** data) {
4762 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4763 if (value == NULL) { return false; }
4764 if (data == NULL) { return true; }
4765 return mapMovieDictionary(*pdfDoc, *value, (SkPdfMovieDictionary**)data);
4766}
4767
4768bool MovieDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfMovieDictionary** data) {
4769 if (MovieDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4770 if (abr == NULL || *abr == '\0') return false;
4771 return MovieDictionaryFromDictionary(pdfDoc, dict, abr, data);
4772}
4773
4774bool isMovieActivationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4775 return true;
4776}
4777
4778bool MovieActivationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfMovieActivationDictionary** data) {
4779 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4780 if (value == NULL) { return false; }
4781 if (data == NULL) { return true; }
4782 return mapMovieActivationDictionary(*pdfDoc, *value, (SkPdfMovieActivationDictionary**)data);
4783}
4784
4785bool MovieActivationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfMovieActivationDictionary** data) {
4786 if (MovieActivationDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4787 if (abr == NULL || *abr == '\0') return false;
4788 return MovieActivationDictionaryFromDictionary(pdfDoc, dict, abr, data);
4789}
4790
4791bool isDocumentInformationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4792 return true;
4793}
4794
4795bool DocumentInformationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfDocumentInformationDictionary** data) {
4796 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4797 if (value == NULL) { return false; }
4798 if (data == NULL) { return true; }
4799 return mapDocumentInformationDictionary(*pdfDoc, *value, (SkPdfDocumentInformationDictionary**)data);
4800}
4801
4802bool DocumentInformationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfDocumentInformationDictionary** data) {
4803 if (DocumentInformationDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4804 if (abr == NULL || *abr == '\0') return false;
4805 return DocumentInformationDictionaryFromDictionary(pdfDoc, dict, abr, data);
4806}
4807
4808bool isMetadataStreamDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4809 return true;
4810}
4811
4812bool MetadataStreamDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfMetadataStreamDictionary** data) {
4813 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4814 if (value == NULL) { return false; }
4815 if (data == NULL) { return true; }
4816 return mapMetadataStreamDictionary(*pdfDoc, *value, (SkPdfMetadataStreamDictionary**)data);
4817}
4818
4819bool MetadataStreamDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfMetadataStreamDictionary** data) {
4820 if (MetadataStreamDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4821 if (abr == NULL || *abr == '\0') return false;
4822 return MetadataStreamDictionaryFromDictionary(pdfDoc, dict, abr, data);
4823}
4824
4825bool isComponentsWithMetadataDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4826 return true;
4827}
4828
4829bool ComponentsWithMetadataDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfComponentsWithMetadataDictionary** data) {
4830 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4831 if (value == NULL) { return false; }
4832 if (data == NULL) { return true; }
4833 return mapComponentsWithMetadataDictionary(*pdfDoc, *value, (SkPdfComponentsWithMetadataDictionary**)data);
4834}
4835
4836bool ComponentsWithMetadataDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfComponentsWithMetadataDictionary** data) {
4837 if (ComponentsWithMetadataDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4838 if (abr == NULL || *abr == '\0') return false;
4839 return ComponentsWithMetadataDictionaryFromDictionary(pdfDoc, dict, abr, data);
4840}
4841
4842bool isPagePieceDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4843 return true;
4844}
4845
4846bool PagePieceDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfPagePieceDictionary** data) {
4847 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4848 if (value == NULL) { return false; }
4849 if (data == NULL) { return true; }
4850 return mapPagePieceDictionary(*pdfDoc, *value, (SkPdfPagePieceDictionary**)data);
4851}
4852
4853bool PagePieceDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfPagePieceDictionary** data) {
4854 if (PagePieceDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4855 if (abr == NULL || *abr == '\0') return false;
4856 return PagePieceDictionaryFromDictionary(pdfDoc, dict, abr, data);
4857}
4858
4859bool isApplicationDataDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4860 return true;
4861}
4862
4863bool ApplicationDataDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfApplicationDataDictionary** data) {
4864 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4865 if (value == NULL) { return false; }
4866 if (data == NULL) { return true; }
4867 return mapApplicationDataDictionary(*pdfDoc, *value, (SkPdfApplicationDataDictionary**)data);
4868}
4869
4870bool ApplicationDataDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfApplicationDataDictionary** data) {
4871 if (ApplicationDataDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4872 if (abr == NULL || *abr == '\0') return false;
4873 return ApplicationDataDictionaryFromDictionary(pdfDoc, dict, abr, data);
4874}
4875
4876bool isStructureTreeRootDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4877 return true;
4878}
4879
4880bool StructureTreeRootDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfStructureTreeRootDictionary** data) {
4881 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4882 if (value == NULL) { return false; }
4883 if (data == NULL) { return true; }
4884 return mapStructureTreeRootDictionary(*pdfDoc, *value, (SkPdfStructureTreeRootDictionary**)data);
4885}
4886
4887bool StructureTreeRootDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfStructureTreeRootDictionary** data) {
4888 if (StructureTreeRootDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4889 if (abr == NULL || *abr == '\0') return false;
4890 return StructureTreeRootDictionaryFromDictionary(pdfDoc, dict, abr, data);
4891}
4892
4893bool isStructureElementDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4894 return true;
4895}
4896
4897bool StructureElementDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfStructureElementDictionary** data) {
4898 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4899 if (value == NULL) { return false; }
4900 if (data == NULL) { return true; }
4901 return mapStructureElementDictionary(*pdfDoc, *value, (SkPdfStructureElementDictionary**)data);
4902}
4903
4904bool StructureElementDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfStructureElementDictionary** data) {
4905 if (StructureElementDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4906 if (abr == NULL || *abr == '\0') return false;
4907 return StructureElementDictionaryFromDictionary(pdfDoc, dict, abr, data);
4908}
4909
4910bool isMarkedContentReferenceDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4911 return true;
4912}
4913
4914bool MarkedContentReferenceDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfMarkedContentReferenceDictionary** data) {
4915 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4916 if (value == NULL) { return false; }
4917 if (data == NULL) { return true; }
4918 return mapMarkedContentReferenceDictionary(*pdfDoc, *value, (SkPdfMarkedContentReferenceDictionary**)data);
4919}
4920
4921bool MarkedContentReferenceDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfMarkedContentReferenceDictionary** data) {
4922 if (MarkedContentReferenceDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4923 if (abr == NULL || *abr == '\0') return false;
4924 return MarkedContentReferenceDictionaryFromDictionary(pdfDoc, dict, abr, data);
4925}
4926
4927bool isObjectReferenceDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4928 return true;
4929}
4930
4931bool ObjectReferenceDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfObjectReferenceDictionary** data) {
4932 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4933 if (value == NULL) { return false; }
4934 if (data == NULL) { return true; }
4935 return mapObjectReferenceDictionary(*pdfDoc, *value, (SkPdfObjectReferenceDictionary**)data);
4936}
4937
4938bool ObjectReferenceDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfObjectReferenceDictionary** data) {
4939 if (ObjectReferenceDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4940 if (abr == NULL || *abr == '\0') return false;
4941 return ObjectReferenceDictionaryFromDictionary(pdfDoc, dict, abr, data);
4942}
4943
4944bool isStructureElementAccessDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4945 return true;
4946}
4947
4948bool StructureElementAccessDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfStructureElementAccessDictionary** data) {
4949 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4950 if (value == NULL) { return false; }
4951 if (data == NULL) { return true; }
4952 return mapStructureElementAccessDictionary(*pdfDoc, *value, (SkPdfStructureElementAccessDictionary**)data);
4953}
4954
4955bool StructureElementAccessDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfStructureElementAccessDictionary** data) {
4956 if (StructureElementAccessDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4957 if (abr == NULL || *abr == '\0') return false;
4958 return StructureElementAccessDictionaryFromDictionary(pdfDoc, dict, abr, data);
4959}
4960
4961bool isAttributeObjectDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4962 return true;
4963}
4964
4965bool AttributeObjectDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfAttributeObjectDictionary** data) {
4966 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4967 if (value == NULL) { return false; }
4968 if (data == NULL) { return true; }
4969 return mapAttributeObjectDictionary(*pdfDoc, *value, (SkPdfAttributeObjectDictionary**)data);
4970}
4971
4972bool AttributeObjectDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfAttributeObjectDictionary** data) {
4973 if (AttributeObjectDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4974 if (abr == NULL || *abr == '\0') return false;
4975 return AttributeObjectDictionaryFromDictionary(pdfDoc, dict, abr, data);
4976}
4977
4978bool isMarkInformationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4979 return true;
4980}
4981
4982bool MarkInformationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfMarkInformationDictionary** data) {
4983 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
4984 if (value == NULL) { return false; }
4985 if (data == NULL) { return true; }
4986 return mapMarkInformationDictionary(*pdfDoc, *value, (SkPdfMarkInformationDictionary**)data);
4987}
4988
4989bool MarkInformationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfMarkInformationDictionary** data) {
4990 if (MarkInformationDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
4991 if (abr == NULL || *abr == '\0') return false;
4992 return MarkInformationDictionaryFromDictionary(pdfDoc, dict, abr, data);
4993}
4994
4995bool isArtifactsDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
4996 return true;
4997}
4998
4999bool ArtifactsDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfArtifactsDictionary** data) {
5000 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
5001 if (value == NULL) { return false; }
5002 if (data == NULL) { return true; }
5003 return mapArtifactsDictionary(*pdfDoc, *value, (SkPdfArtifactsDictionary**)data);
5004}
5005
5006bool ArtifactsDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfArtifactsDictionary** data) {
5007 if (ArtifactsDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
5008 if (abr == NULL || *abr == '\0') return false;
5009 return ArtifactsDictionaryFromDictionary(pdfDoc, dict, abr, data);
5010}
5011
5012bool isStandardStructureDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
5013 return true;
5014}
5015
5016bool StandardStructureDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfStandardStructureDictionary** data) {
5017 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
5018 if (value == NULL) { return false; }
5019 if (data == NULL) { return true; }
5020 return mapStandardStructureDictionary(*pdfDoc, *value, (SkPdfStandardStructureDictionary**)data);
5021}
5022
5023bool StandardStructureDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfStandardStructureDictionary** data) {
5024 if (StandardStructureDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
5025 if (abr == NULL || *abr == '\0') return false;
5026 return StandardStructureDictionaryFromDictionary(pdfDoc, dict, abr, data);
5027}
5028
5029bool isBlockLevelStructureElementsDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
5030 return true;
5031}
5032
5033bool BlockLevelStructureElementsDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfBlockLevelStructureElementsDictionary** data) {
5034 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
5035 if (value == NULL) { return false; }
5036 if (data == NULL) { return true; }
5037 return mapBlockLevelStructureElementsDictionary(*pdfDoc, *value, (SkPdfBlockLevelStructureElementsDictionary**)data);
5038}
5039
5040bool BlockLevelStructureElementsDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfBlockLevelStructureElementsDictionary** data) {
5041 if (BlockLevelStructureElementsDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
5042 if (abr == NULL || *abr == '\0') return false;
5043 return BlockLevelStructureElementsDictionaryFromDictionary(pdfDoc, dict, abr, data);
5044}
5045
5046bool isInlineLevelStructureElementsDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
5047 return true;
5048}
5049
5050bool InlineLevelStructureElementsDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfInlineLevelStructureElementsDictionary** data) {
5051 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
5052 if (value == NULL) { return false; }
5053 if (data == NULL) { return true; }
5054 return mapInlineLevelStructureElementsDictionary(*pdfDoc, *value, (SkPdfInlineLevelStructureElementsDictionary**)data);
5055}
5056
5057bool InlineLevelStructureElementsDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfInlineLevelStructureElementsDictionary** data) {
5058 if (InlineLevelStructureElementsDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
5059 if (abr == NULL || *abr == '\0') return false;
5060 return InlineLevelStructureElementsDictionaryFromDictionary(pdfDoc, dict, abr, data);
5061}
5062
5063bool isListAttributeDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
5064 return true;
5065}
5066
5067bool ListAttributeDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfListAttributeDictionary** data) {
5068 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
5069 if (value == NULL) { return false; }
5070 if (data == NULL) { return true; }
5071 return mapListAttributeDictionary(*pdfDoc, *value, (SkPdfListAttributeDictionary**)data);
5072}
5073
5074bool ListAttributeDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfListAttributeDictionary** data) {
5075 if (ListAttributeDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
5076 if (abr == NULL || *abr == '\0') return false;
5077 return ListAttributeDictionaryFromDictionary(pdfDoc, dict, abr, data);
5078}
5079
5080bool isTableAttributesDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
5081 return true;
5082}
5083
5084bool TableAttributesDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfTableAttributesDictionary** data) {
5085 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
5086 if (value == NULL) { return false; }
5087 if (data == NULL) { return true; }
5088 return mapTableAttributesDictionary(*pdfDoc, *value, (SkPdfTableAttributesDictionary**)data);
5089}
5090
5091bool TableAttributesDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfTableAttributesDictionary** data) {
5092 if (TableAttributesDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
5093 if (abr == NULL || *abr == '\0') return false;
5094 return TableAttributesDictionaryFromDictionary(pdfDoc, dict, abr, data);
5095}
5096
5097bool isWebCaptureInformationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
5098 return true;
5099}
5100
5101bool WebCaptureInformationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfWebCaptureInformationDictionary** data) {
5102 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
5103 if (value == NULL) { return false; }
5104 if (data == NULL) { return true; }
5105 return mapWebCaptureInformationDictionary(*pdfDoc, *value, (SkPdfWebCaptureInformationDictionary**)data);
5106}
5107
5108bool WebCaptureInformationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfWebCaptureInformationDictionary** data) {
5109 if (WebCaptureInformationDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
5110 if (abr == NULL || *abr == '\0') return false;
5111 return WebCaptureInformationDictionaryFromDictionary(pdfDoc, dict, abr, data);
5112}
5113
5114bool isWebCaptureDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
5115 return true;
5116}
5117
5118bool WebCaptureDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfWebCaptureDictionary** data) {
5119 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
5120 if (value == NULL) { return false; }
5121 if (data == NULL) { return true; }
5122 return mapWebCaptureDictionary(*pdfDoc, *value, (SkPdfWebCaptureDictionary**)data);
5123}
5124
5125bool WebCaptureDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfWebCaptureDictionary** data) {
5126 if (WebCaptureDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
5127 if (abr == NULL || *abr == '\0') return false;
5128 return WebCaptureDictionaryFromDictionary(pdfDoc, dict, abr, data);
5129}
5130
5131bool isWebCapturePageSetDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
5132 return true;
5133}
5134
5135bool WebCapturePageSetDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfWebCapturePageSetDictionary** data) {
5136 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
5137 if (value == NULL) { return false; }
5138 if (data == NULL) { return true; }
5139 return mapWebCapturePageSetDictionary(*pdfDoc, *value, (SkPdfWebCapturePageSetDictionary**)data);
5140}
5141
5142bool WebCapturePageSetDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfWebCapturePageSetDictionary** data) {
5143 if (WebCapturePageSetDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
5144 if (abr == NULL || *abr == '\0') return false;
5145 return WebCapturePageSetDictionaryFromDictionary(pdfDoc, dict, abr, data);
5146}
5147
5148bool isWebCaptureImageSetDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
5149 return true;
5150}
5151
5152bool WebCaptureImageSetDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfWebCaptureImageSetDictionary** data) {
5153 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
5154 if (value == NULL) { return false; }
5155 if (data == NULL) { return true; }
5156 return mapWebCaptureImageSetDictionary(*pdfDoc, *value, (SkPdfWebCaptureImageSetDictionary**)data);
5157}
5158
5159bool WebCaptureImageSetDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfWebCaptureImageSetDictionary** data) {
5160 if (WebCaptureImageSetDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
5161 if (abr == NULL || *abr == '\0') return false;
5162 return WebCaptureImageSetDictionaryFromDictionary(pdfDoc, dict, abr, data);
5163}
5164
5165bool isSourceInformationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
5166 return true;
5167}
5168
5169bool SourceInformationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfSourceInformationDictionary** data) {
5170 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
5171 if (value == NULL) { return false; }
5172 if (data == NULL) { return true; }
5173 return mapSourceInformationDictionary(*pdfDoc, *value, (SkPdfSourceInformationDictionary**)data);
5174}
5175
5176bool SourceInformationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfSourceInformationDictionary** data) {
5177 if (SourceInformationDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
5178 if (abr == NULL || *abr == '\0') return false;
5179 return SourceInformationDictionaryFromDictionary(pdfDoc, dict, abr, data);
5180}
5181
5182bool isURLAliasDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
5183 return true;
5184}
5185
5186bool URLAliasDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfURLAliasDictionary** data) {
5187 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
5188 if (value == NULL) { return false; }
5189 if (data == NULL) { return true; }
5190 return mapURLAliasDictionary(*pdfDoc, *value, (SkPdfURLAliasDictionary**)data);
5191}
5192
5193bool URLAliasDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfURLAliasDictionary** data) {
5194 if (URLAliasDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
5195 if (abr == NULL || *abr == '\0') return false;
5196 return URLAliasDictionaryFromDictionary(pdfDoc, dict, abr, data);
5197}
5198
5199bool isWebCaptureCommandDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
5200 return true;
5201}
5202
5203bool WebCaptureCommandDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfWebCaptureCommandDictionary** data) {
5204 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
5205 if (value == NULL) { return false; }
5206 if (data == NULL) { return true; }
5207 return mapWebCaptureCommandDictionary(*pdfDoc, *value, (SkPdfWebCaptureCommandDictionary**)data);
5208}
5209
5210bool WebCaptureCommandDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfWebCaptureCommandDictionary** data) {
5211 if (WebCaptureCommandDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
5212 if (abr == NULL || *abr == '\0') return false;
5213 return WebCaptureCommandDictionaryFromDictionary(pdfDoc, dict, abr, data);
5214}
5215
5216bool isWebCaptureCommandSettingsDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
5217 return true;
5218}
5219
5220bool WebCaptureCommandSettingsDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfWebCaptureCommandSettingsDictionary** data) {
5221 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
5222 if (value == NULL) { return false; }
5223 if (data == NULL) { return true; }
5224 return mapWebCaptureCommandSettingsDictionary(*pdfDoc, *value, (SkPdfWebCaptureCommandSettingsDictionary**)data);
5225}
5226
5227bool WebCaptureCommandSettingsDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfWebCaptureCommandSettingsDictionary** data) {
5228 if (WebCaptureCommandSettingsDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
5229 if (abr == NULL || *abr == '\0') return false;
5230 return WebCaptureCommandSettingsDictionaryFromDictionary(pdfDoc, dict, abr, data);
5231}
5232
5233bool isBoxColorInformationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
5234 return true;
5235}
5236
5237bool BoxColorInformationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfBoxColorInformationDictionary** data) {
5238 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
5239 if (value == NULL) { return false; }
5240 if (data == NULL) { return true; }
5241 return mapBoxColorInformationDictionary(*pdfDoc, *value, (SkPdfBoxColorInformationDictionary**)data);
5242}
5243
5244bool BoxColorInformationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfBoxColorInformationDictionary** data) {
5245 if (BoxColorInformationDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
5246 if (abr == NULL || *abr == '\0') return false;
5247 return BoxColorInformationDictionaryFromDictionary(pdfDoc, dict, abr, data);
5248}
5249
5250bool isBoxStyleDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
5251 return true;
5252}
5253
5254bool BoxStyleDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfBoxStyleDictionary** data) {
5255 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
5256 if (value == NULL) { return false; }
5257 if (data == NULL) { return true; }
5258 return mapBoxStyleDictionary(*pdfDoc, *value, (SkPdfBoxStyleDictionary**)data);
5259}
5260
5261bool BoxStyleDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfBoxStyleDictionary** data) {
5262 if (BoxStyleDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
5263 if (abr == NULL || *abr == '\0') return false;
5264 return BoxStyleDictionaryFromDictionary(pdfDoc, dict, abr, data);
5265}
5266
5267bool isPrinterMarkAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
5268 return true;
5269}
5270
5271bool PrinterMarkAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfPrinterMarkAnnotationDictionary** data) {
5272 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
5273 if (value == NULL) { return false; }
5274 if (data == NULL) { return true; }
5275 return mapPrinterMarkAnnotationDictionary(*pdfDoc, *value, (SkPdfPrinterMarkAnnotationDictionary**)data);
5276}
5277
5278bool PrinterMarkAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfPrinterMarkAnnotationDictionary** data) {
5279 if (PrinterMarkAnnotationDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
5280 if (abr == NULL || *abr == '\0') return false;
5281 return PrinterMarkAnnotationDictionaryFromDictionary(pdfDoc, dict, abr, data);
5282}
5283
5284bool isPrinterMarkFormDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
5285 return true;
5286}
5287
5288bool PrinterMarkFormDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfPrinterMarkFormDictionary** data) {
5289 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
5290 if (value == NULL) { return false; }
5291 if (data == NULL) { return true; }
5292 return mapPrinterMarkFormDictionary(*pdfDoc, *value, (SkPdfPrinterMarkFormDictionary**)data);
5293}
5294
5295bool PrinterMarkFormDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfPrinterMarkFormDictionary** data) {
5296 if (PrinterMarkFormDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
5297 if (abr == NULL || *abr == '\0') return false;
5298 return PrinterMarkFormDictionaryFromDictionary(pdfDoc, dict, abr, data);
5299}
5300
5301bool isSeparationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
5302 return true;
5303}
5304
5305bool SeparationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfSeparationDictionary** data) {
5306 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
5307 if (value == NULL) { return false; }
5308 if (data == NULL) { return true; }
5309 return mapSeparationDictionary(*pdfDoc, *value, (SkPdfSeparationDictionary**)data);
5310}
5311
5312bool SeparationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfSeparationDictionary** data) {
5313 if (SeparationDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
5314 if (abr == NULL || *abr == '\0') return false;
5315 return SeparationDictionaryFromDictionary(pdfDoc, dict, abr, data);
5316}
5317
5318bool isPDF_XOutputIntentDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
5319 return true;
5320}
5321
5322bool PDF_XOutputIntentDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfPDF_XOutputIntentDictionary** data) {
5323 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
5324 if (value == NULL) { return false; }
5325 if (data == NULL) { return true; }
5326 return mapPDF_XOutputIntentDictionary(*pdfDoc, *value, (SkPdfPDF_XOutputIntentDictionary**)data);
5327}
5328
5329bool PDF_XOutputIntentDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfPDF_XOutputIntentDictionary** data) {
5330 if (PDF_XOutputIntentDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
5331 if (abr == NULL || *abr == '\0') return false;
5332 return PDF_XOutputIntentDictionaryFromDictionary(pdfDoc, dict, abr, data);
5333}
5334
5335bool isTrapNetworkAnnotationDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
5336 return true;
5337}
5338
5339bool TrapNetworkAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfTrapNetworkAnnotationDictionary** data) {
5340 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
5341 if (value == NULL) { return false; }
5342 if (data == NULL) { return true; }
5343 return mapTrapNetworkAnnotationDictionary(*pdfDoc, *value, (SkPdfTrapNetworkAnnotationDictionary**)data);
5344}
5345
5346bool TrapNetworkAnnotationDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfTrapNetworkAnnotationDictionary** data) {
5347 if (TrapNetworkAnnotationDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
5348 if (abr == NULL || *abr == '\0') return false;
5349 return TrapNetworkAnnotationDictionaryFromDictionary(pdfDoc, dict, abr, data);
5350}
5351
5352bool isTrapNetworkAppearanceStreamDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
5353 return true;
5354}
5355
5356bool TrapNetworkAppearanceStreamDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfTrapNetworkAppearanceStreamDictionary** data) {
5357 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
5358 if (value == NULL) { return false; }
5359 if (data == NULL) { return true; }
5360 return mapTrapNetworkAppearanceStreamDictionary(*pdfDoc, *value, (SkPdfTrapNetworkAppearanceStreamDictionary**)data);
5361}
5362
5363bool TrapNetworkAppearanceStreamDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfTrapNetworkAppearanceStreamDictionary** data) {
5364 if (TrapNetworkAppearanceStreamDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
5365 if (abr == NULL || *abr == '\0') return false;
5366 return TrapNetworkAppearanceStreamDictionaryFromDictionary(pdfDoc, dict, abr, data);
5367}
5368
5369bool isOpiVersionDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
5370 return true;
5371}
5372
5373bool OpiVersionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfOpiVersionDictionary** data) {
5374 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
5375 if (value == NULL) { return false; }
5376 if (data == NULL) { return true; }
5377 return mapOpiVersionDictionary(*pdfDoc, *value, (SkPdfOpiVersionDictionary**)data);
5378}
5379
5380bool OpiVersionDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfOpiVersionDictionary** data) {
5381 if (OpiVersionDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
5382 if (abr == NULL || *abr == '\0') return false;
5383 return OpiVersionDictionaryFromDictionary(pdfDoc, dict, abr, data);
5384}
5385
5386bool isMultiMasterFontDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
5387 std::string Subtype;
5388 if (!NameFromDictionary(&podofoDoc, podofoObj.GetDictionary(), "Subtype", "", &Subtype)) return false;
5389 if ((Subtype != "MMType1")) return false;
5390
5391 return true;
5392}
5393
5394bool MultiMasterFontDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, SkPdfMultiMasterFontDictionary** data) {
5395 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(key)), true);
5396 if (value == NULL) { return false; }
5397 if (data == NULL) { return true; }
5398 return mapMultiMasterFontDictionary(*pdfDoc, *value, (SkPdfMultiMasterFontDictionary**)data);
5399}
5400
5401bool MultiMasterFontDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDictionary& dict, const char* key, const char* abr, SkPdfMultiMasterFontDictionary** data) {
5402 if (MultiMasterFontDictionaryFromDictionary(pdfDoc, dict, key, data)) return true;
5403 if (abr == NULL || *abr == '\0') return false;
5404 return MultiMasterFontDictionaryFromDictionary(pdfDoc, dict, abr, data);
5405}