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