Handle annotations with no resources.
This commit is contained in:
parent
a2678c51d2
commit
e62ab300f1
@ -142,6 +142,10 @@ var Annotation = (function AnnotationClosure() {
|
|||||||
loadResources: function(keys) {
|
loadResources: function(keys) {
|
||||||
var promise = new Promise();
|
var promise = new Promise();
|
||||||
this.appearance.dict.getAsync('Resources').then(function(resources) {
|
this.appearance.dict.getAsync('Resources').then(function(resources) {
|
||||||
|
if (!resources) {
|
||||||
|
promise.resolve();
|
||||||
|
return;
|
||||||
|
}
|
||||||
var objectLoader = new ObjectLoader(resources.map,
|
var objectLoader = new ObjectLoader(resources.map,
|
||||||
keys,
|
keys,
|
||||||
resources.xref);
|
resources.xref);
|
||||||
|
BIN
test/pdfs/bug886717.pdf
Normal file
BIN
test/pdfs/bug886717.pdf
Normal file
Binary file not shown.
@ -1128,6 +1128,13 @@
|
|||||||
"rounds": 1,
|
"rounds": 1,
|
||||||
"type": "eq"
|
"type": "eq"
|
||||||
},
|
},
|
||||||
|
{ "id": "bug886717",
|
||||||
|
"file": "pdfs/bug886717.pdf",
|
||||||
|
"md5": "8ba614192797a1324765610231a1bc9d",
|
||||||
|
"rounds": 1,
|
||||||
|
"type": "load",
|
||||||
|
"about": "Annotation that has no resources."
|
||||||
|
},
|
||||||
{ "id": "issue3263",
|
{ "id": "issue3263",
|
||||||
"file": "pdfs/issue3263.pdf",
|
"file": "pdfs/issue3263.pdf",
|
||||||
"md5": "cee1cf0bd7ce6681cdb97c8e42697d81",
|
"md5": "cee1cf0bd7ce6681cdb97c8e42697d81",
|
||||||
|
Loading…
Reference in New Issue
Block a user