blob: 24f3c64332c8a68ae841896c4b417e5da2dc1207 [file] [log] [blame]
#include "SkPdfComponentsWithMetadataDictionary_autogen.h"
#include "SkPdfNativeDoc.h"
SkPdfStream* SkPdfComponentsWithMetadataDictionary::Metadata(SkPdfNativeDoc* doc) {
SkPdfNativeObject* ret = get("Metadata", "");
if (doc) {ret = doc->resolveReference(ret);}
if ((ret != NULL && ret->hasStream()) || (doc == NULL && ret != NULL && ret->isReference())) return ret->getStream();
// TODO(edisonn): warn about missing default value for optional fields
return NULL;
}
bool SkPdfComponentsWithMetadataDictionary::has_Metadata() const {
return get("Metadata", "") != NULL;
}