mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Merge pull request #3393 from brendandahl/no-resources
Handle annotations with no resources.
This commit is contained in:
commit
8561d2646b
3 changed files with 11 additions and 0 deletions
|
@ -142,6 +142,10 @@ var Annotation = (function AnnotationClosure() {
|
|||
loadResources: function(keys) {
|
||||
var promise = new Promise();
|
||||
this.appearance.dict.getAsync('Resources').then(function(resources) {
|
||||
if (!resources) {
|
||||
promise.resolve();
|
||||
return;
|
||||
}
|
||||
var objectLoader = new ObjectLoader(resources.map,
|
||||
keys,
|
||||
resources.xref);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue