| Index: experimental/PdfViewer/autogen/SkPdfEmbeddedFontStreamDictionary_autogen.cpp
|
| ===================================================================
|
| --- experimental/PdfViewer/autogen/SkPdfEmbeddedFontStreamDictionary_autogen.cpp (revision 0)
|
| +++ experimental/PdfViewer/autogen/SkPdfEmbeddedFontStreamDictionary_autogen.cpp (revision 0)
|
| @@ -0,0 +1,37 @@
|
| +#include "SkPdfEmbeddedFontStreamDictionary_autogen.h"
|
| +
|
| +long SkPdfEmbeddedFontStreamDictionary::Length1() const {
|
| + long ret;
|
| + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Length1", "", &ret)) return ret;
|
| + // TODO(edisonn): warn about missing required field, assert for known good pdfs
|
| + return 0;
|
| +}
|
| +
|
| +long SkPdfEmbeddedFontStreamDictionary::Length2() const {
|
| + long ret;
|
| + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Length2", "", &ret)) return ret;
|
| + // TODO(edisonn): warn about missing required field, assert for known good pdfs
|
| + return 0;
|
| +}
|
| +
|
| +long SkPdfEmbeddedFontStreamDictionary::Length3() const {
|
| + long ret;
|
| + if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Length3", "", &ret)) return ret;
|
| + // TODO(edisonn): warn about missing required field, assert for known good pdfs
|
| + return 0;
|
| +}
|
| +
|
| +std::string SkPdfEmbeddedFontStreamDictionary::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* SkPdfEmbeddedFontStreamDictionary::Metadata() const {
|
| + SkPdfStream* ret;
|
| + if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Metadata", "", &ret)) return ret;
|
| + // TODO(edisonn): warn about missing required field, assert for known good pdfs
|
| + return NULL;
|
| +}
|
| +
|
|
|