OLD | NEW |
(Empty) | |
| 1 #include "SkPdfOpiVersionDictionary_autogen.h" |
| 2 |
| 3 |
| 4 #include "SkPdfNativeDoc.h" |
| 5 SkPdfDictionary* SkPdfOpiVersionDictionary::version_number(SkPdfNativeDoc* doc)
{ |
| 6 SkPdfNativeObject* ret = get("version_number", ""); |
| 7 if (doc) {ret = doc->resolveReference(ret);} |
| 8 if ((ret != NULL && ret->isDictionary()) || (doc == NULL && ret != NULL && ret
->isReference())) return (SkPdfDictionary*)ret; |
| 9 // TODO(edisonn): warn about missing required field, assert for known good pdf
s |
| 10 return NULL; |
| 11 } |
| 12 |
| 13 bool SkPdfOpiVersionDictionary::has_version_number() const { |
| 14 return get("version_number", "") != NULL; |
| 15 } |
| 16 |
OLD | NEW |