Index: experimental/PdfViewer/autogen/SkPdfEncryptionCommonDictionary_autogen.cpp |
=================================================================== |
--- experimental/PdfViewer/autogen/SkPdfEncryptionCommonDictionary_autogen.cpp (revision 0) |
+++ experimental/PdfViewer/autogen/SkPdfEncryptionCommonDictionary_autogen.cpp (revision 0) |
@@ -0,0 +1,23 @@ |
+#include "SkPdfEncryptionCommonDictionary_autogen.h" |
+ |
+std::string SkPdfEncryptionCommonDictionary::Filter() const { |
+ std::string ret; |
+ if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Filter", "", &ret)) return ret; |
+ // TODO(edisonn): warn about missing required field, assert for known good pdfs |
+ return ""; |
+} |
+ |
+double SkPdfEncryptionCommonDictionary::V() const { |
+ double ret; |
+ if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "V", "", &ret)) return ret; |
+ // TODO(edisonn): warn about missing required field, assert for known good pdfs |
+ return 0; |
+} |
+ |
+long SkPdfEncryptionCommonDictionary::Length() const { |
+ long ret; |
+ if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Length", "", &ret)) return ret; |
+ // TODO(edisonn): warn about missing required field, assert for known good pdfs |
+ return 0; |
+} |
+ |