OLD | NEW |
| (Empty) |
1 #include "SkPdfFDFDictionary_autogen.h" | |
2 | |
3 SkPdfFileSpec SkPdfFDFDictionary::F() const { | |
4 SkPdfFileSpec ret; | |
5 if (FileSpecFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", &
ret)) return ret; | |
6 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
7 return SkPdfFileSpec(); | |
8 } | |
9 | |
10 SkPdfArray* SkPdfFDFDictionary::ID() const { | |
11 SkPdfArray* ret; | |
12 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ID", "", &re
t)) return ret; | |
13 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
14 return NULL; | |
15 } | |
16 | |
17 SkPdfArray* SkPdfFDFDictionary::Fields() const { | |
18 SkPdfArray* ret; | |
19 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Fields", "",
&ret)) return ret; | |
20 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
21 return NULL; | |
22 } | |
23 | |
24 std::string SkPdfFDFDictionary::Status() const { | |
25 std::string ret; | |
26 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Status", ""
, &ret)) return ret; | |
27 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
28 return ""; | |
29 } | |
30 | |
31 SkPdfArray* SkPdfFDFDictionary::Pages() const { | |
32 SkPdfArray* ret; | |
33 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Pages", "",
&ret)) return ret; | |
34 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
35 return NULL; | |
36 } | |
37 | |
38 std::string SkPdfFDFDictionary::Encoding() const { | |
39 std::string ret; | |
40 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Encoding", ""
, &ret)) return ret; | |
41 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
42 return ""; | |
43 } | |
44 | |
45 SkPdfArray* SkPdfFDFDictionary::Annots() const { | |
46 SkPdfArray* ret; | |
47 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Annots", "",
&ret)) return ret; | |
48 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
49 return NULL; | |
50 } | |
51 | |
52 SkPdfStream* SkPdfFDFDictionary::Differences() const { | |
53 SkPdfStream* ret; | |
54 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Differences
", "", &ret)) return ret; | |
55 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
56 return NULL; | |
57 } | |
58 | |
59 std::string SkPdfFDFDictionary::Target() const { | |
60 std::string ret; | |
61 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Target", ""
, &ret)) return ret; | |
62 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
63 return ""; | |
64 } | |
65 | |
66 SkPdfArray* SkPdfFDFDictionary::EmbeddedFDFs() const { | |
67 SkPdfArray* ret; | |
68 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "EmbeddedFDFs
", "", &ret)) return ret; | |
69 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
70 return NULL; | |
71 } | |
72 | |
73 SkPdfDictionary* SkPdfFDFDictionary::JavaScript() const { | |
74 SkPdfDictionary* ret; | |
75 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "JavaScr
ipt", "", &ret)) return ret; | |
76 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
77 return NULL; | |
78 } | |
OLD | NEW |