OLD | NEW |
| (Empty) |
1 #include "SkPdfStreamCommonDictionary_autogen.h" | |
2 | |
3 long SkPdfStreamCommonDictionary::Length() const { | |
4 long ret; | |
5 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Length", "",
&ret)) return ret; | |
6 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
7 return 0; | |
8 } | |
9 | |
10 std::string SkPdfStreamCommonDictionary::getFilterAsName() const { | |
11 std::string ret = ""; | |
12 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Filter", "",
&ret)) return ret; | |
13 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
14 return ""; | |
15 } | |
16 | |
17 SkPdfArray* SkPdfStreamCommonDictionary::getFilterAsArray() const { | |
18 SkPdfArray* ret = NULL; | |
19 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Filter", "",
&ret)) return ret; | |
20 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
21 return NULL; | |
22 } | |
23 | |
24 SkPdfDictionary* SkPdfStreamCommonDictionary::getDecodeParmsAsDictionary() const
{ | |
25 SkPdfDictionary* ret = NULL; | |
26 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DecodeP
arms", "", &ret)) return ret; | |
27 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
28 return NULL; | |
29 } | |
30 | |
31 SkPdfArray* SkPdfStreamCommonDictionary::getDecodeParmsAsArray() const { | |
32 SkPdfArray* ret = NULL; | |
33 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DecodeParms"
, "", &ret)) return ret; | |
34 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
35 return NULL; | |
36 } | |
37 | |
38 SkPdfFileSpec SkPdfStreamCommonDictionary::F() const { | |
39 SkPdfFileSpec ret; | |
40 if (FileSpecFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", &
ret)) return ret; | |
41 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
42 return SkPdfFileSpec(); | |
43 } | |
44 | |
45 std::string SkPdfStreamCommonDictionary::getFFilterAsName() const { | |
46 std::string ret = ""; | |
47 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FFilter", "",
&ret)) return ret; | |
48 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
49 return ""; | |
50 } | |
51 | |
52 SkPdfArray* SkPdfStreamCommonDictionary::getFFilterAsArray() const { | |
53 SkPdfArray* ret = NULL; | |
54 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FFilter", ""
, &ret)) return ret; | |
55 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
56 return NULL; | |
57 } | |
58 | |
59 SkPdfDictionary* SkPdfStreamCommonDictionary::getFDecodeParmsAsDictionary() cons
t { | |
60 SkPdfDictionary* ret = NULL; | |
61 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FDecode
Parms", "", &ret)) return ret; | |
62 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
63 return NULL; | |
64 } | |
65 | |
66 SkPdfArray* SkPdfStreamCommonDictionary::getFDecodeParmsAsArray() const { | |
67 SkPdfArray* ret = NULL; | |
68 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FDecodeParms
", "", &ret)) return ret; | |
69 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
70 return NULL; | |
71 } | |
OLD | NEW |