blob: 4c837340486c67f10b47f52219d107046a789760 [file] [log] [blame]
#include "SkPdfPSXobjectDictionary_autogen.h"
std::string SkPdfPSXobjectDictionary::Type() const {
std::string ret;
if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret;
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return "";
}
std::string SkPdfPSXobjectDictionary::Subtype() const {
std::string ret;
if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", &ret)) return ret;
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return "";
}
SkPdfStream* SkPdfPSXobjectDictionary::Level1() const {
SkPdfStream* ret;
if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Level1", "", &ret)) return ret;
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return NULL;
}