int64_t SkPdfFileTrailerDictionary::Size(SkPdfNativeDoc* doc) { SkPdfNativeObject* ret = get("Size", ""); 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 required field, assert for known good pdfs return 0; }
int64_t SkPdfFileTrailerDictionary::Prev(SkPdfNativeDoc* doc) { SkPdfNativeObject* ret = get("Prev", ""); 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; }
int64_t SkPdfType4ShadingDictionary::BitsPerComponent(SkPdfNativeDoc* doc) { SkPdfNativeObject* ret = get("BitsPerComponent", ""); 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 required field, assert for known good pdfs return 0; }
int64_t SkPdfEncryptedEmbeddedFileStreamDictionary::EncryptionRevision(SkPdfNativeDoc* doc) { SkPdfNativeObject* ret = get("EncryptionRevision", ""); 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; }
int64_t SkPdfStructureTreeRootDictionary::ParentTreeNextKey(SkPdfNativeDoc* doc) { SkPdfNativeObject* ret = get("ParentTreeNextKey", ""); 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; }
int64_t SkPdfLzwdecodeAndFlatedecodeFiltersDictionary::EarlyChange(SkPdfNativeDoc* doc) { SkPdfNativeObject* ret = get("EarlyChange", ""); 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; }
int64_t SkPdfAppearanceCharacteristicsDictionary::TP(SkPdfNativeDoc* doc) { SkPdfNativeObject* ret = get("TP", ""); 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 SkPdfWebCaptureImageSetDictionary::isRAInteger(SkPdfNativeDoc* doc) { SkPdfNativeObject* ret = get("R", ""); if (doc) {ret = doc->resolveReference(ret);} return ret != NULL && ret->isInteger(); }
bool SkPdfThreadActionDictionary::isBAInteger(SkPdfNativeDoc* doc) { SkPdfNativeObject* ret = get("B", ""); if (doc) {ret = doc->resolveReference(ret);} return ret != NULL && ret->isInteger(); }