SkPdfStream* SkPdfType2PatternDictionary::getShadingAsStream(SkPdfNativeDoc* doc) { SkPdfNativeObject* ret = get("Shading", ""); 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 required field, assert for known good pdfs return NULL; }
bool SkPdfCMapDictionary::isUseCMapAStream(SkPdfNativeDoc* doc) { SkPdfNativeObject* ret = get("UseCMap", ""); if (doc) { ret = doc->resolveReference(ret); } return ret != NULL && ret->hasStream(); }
SkPdfStream* SkPdfAppearanceDictionary::getDAsStream(SkPdfNativeDoc* doc) { SkPdfNativeObject* ret = get("D", ""); 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; }
SkPdfStream* SkPdfPDF_XOutputIntentDictionary::DestOutputProfile(SkPdfNativeDoc* doc) { SkPdfNativeObject* ret = get("DestOutputProfile", ""); 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; }
SkPdfStream* SkPdfMacOsFileInformationDictionary::ResFork(SkPdfNativeDoc* doc) { SkPdfNativeObject* ret = get("ResFork", ""); 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; }
SkPdfStream* SkPdfJbig2DecodeFilterDictionary::JBIG2Globals(SkPdfNativeDoc* doc) { SkPdfNativeObject* ret = get("JBIG2Globals", ""); 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 SkPdfType2PatternDictionary::isShadingAStream(SkPdfNativeDoc* doc) { SkPdfNativeObject* ret = get("Shading", ""); if (doc) {ret = doc->resolveReference(ret);} return ret != NULL && ret->hasStream(); }
bool SkPdfAppearanceDictionary::isDAStream(SkPdfNativeDoc* doc) { SkPdfNativeObject* ret = get("D", ""); if (doc) {ret = doc->resolveReference(ret);} return ret != NULL && ret->hasStream(); }
bool SkPdfImageDictionary::isMaskAStream(SkPdfNativeDoc* doc) { SkPdfNativeObject* ret = get("Mask", ""); if (doc) {ret = doc->resolveReference(ret);} return ret != NULL && ret->hasStream(); }