OLD | NEW |
| (Empty) |
1 #include "SkPdfDocumentInformationDictionary_autogen.h" | |
2 | |
3 std::string SkPdfDocumentInformationDictionary::Title() const { | |
4 std::string ret; | |
5 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Title", "",
&ret)) return ret; | |
6 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
7 return ""; | |
8 } | |
9 | |
10 std::string SkPdfDocumentInformationDictionary::Author() const { | |
11 std::string ret; | |
12 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Author", ""
, &ret)) return ret; | |
13 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
14 return ""; | |
15 } | |
16 | |
17 std::string SkPdfDocumentInformationDictionary::Subject() const { | |
18 std::string ret; | |
19 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subject", "
", &ret)) return ret; | |
20 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
21 return ""; | |
22 } | |
23 | |
24 std::string SkPdfDocumentInformationDictionary::Keywords() const { | |
25 std::string ret; | |
26 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Keywords",
"", &ret)) return ret; | |
27 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
28 return ""; | |
29 } | |
30 | |
31 std::string SkPdfDocumentInformationDictionary::Creator() const { | |
32 std::string ret; | |
33 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Creator", "
", &ret)) return ret; | |
34 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
35 return ""; | |
36 } | |
37 | |
38 std::string SkPdfDocumentInformationDictionary::Producer() const { | |
39 std::string ret; | |
40 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Producer",
"", &ret)) return ret; | |
41 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
42 return ""; | |
43 } | |
44 | |
45 SkPdfDate SkPdfDocumentInformationDictionary::CreationDate() const { | |
46 SkPdfDate ret; | |
47 if (DateFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CreationDate"
, "", &ret)) return ret; | |
48 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
49 return SkPdfDate(); | |
50 } | |
51 | |
52 SkPdfDate SkPdfDocumentInformationDictionary::ModDate() const { | |
53 SkPdfDate ret; | |
54 if (DateFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ModDate", "",
&ret)) return ret; | |
55 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
56 return SkPdfDate(); | |
57 } | |
58 | |
59 std::string SkPdfDocumentInformationDictionary::Trapped() const { | |
60 std::string ret; | |
61 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Trapped", "",
&ret)) return ret; | |
62 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
63 return ""; | |
64 } | |
OLD | NEW |