Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Side by Side Diff: experimental/PdfViewer/autogen/SkPdfPodofoMapper_autogen.cpp

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

Powered by Google App Engine
This is Rietveld 408576698