aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfFDFFileAnnotationDictionary_autogen.cpp
blob: 790fe31f96bda6f8605d129fec43716dba21797b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "SkPdfFDFFileAnnotationDictionary_autogen.h"


#include "SkPdfNativeDoc.h"
int64_t SkPdfFDFFileAnnotationDictionary::Page(SkPdfNativeDoc* doc) {
  SkPdfNativeObject* ret = get("Page", "");
  if (doc) {ret = doc->resolveReference(ret);}
  if ((ret != NULL && ret->isInteger()) || (doc == NULL && ret != NULL && ret->isReference())) return ret->intValue();
  // TODO(edisonn): warn about missing default value for optional fields
  return 0;
}

bool SkPdfFDFFileAnnotationDictionary::has_Page() const {
  return get("Page", "") != NULL;
}