Merge pull request #1095 from arturadib/issue-1055
Fixes #1055 by falling back to page resources
This commit is contained in:
commit
782b67b967
@ -292,8 +292,8 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
|
||||
// Create an IR of the pattern code.
|
||||
var depIdx = dependencyArray.length;
|
||||
var queueObj = {};
|
||||
var codeIR = this.getIRQueue(pattern, dict.get('Resources'),
|
||||
queueObj, dependencyArray);
|
||||
var codeIR = this.getIRQueue(pattern, dict.get('Resources') ||
|
||||
resources, queueObj, dependencyArray);
|
||||
|
||||
// Add the dependencies that are required to execute the
|
||||
// codeIR.
|
||||
@ -336,8 +336,8 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
|
||||
// This adds the IRQueue of the xObj to the current queue.
|
||||
var depIdx = dependencyArray.length;
|
||||
|
||||
this.getIRQueue(xobj, xobj.dict.get('Resources'), queue,
|
||||
dependencyArray);
|
||||
this.getIRQueue(xobj, xobj.dict.get('Resources') || resources,
|
||||
queue, dependencyArray);
|
||||
|
||||
// Add the dependencies that are required to execute the
|
||||
// codeIR.
|
||||
|
1
test/pdfs/issue1055.pdf.link
Normal file
1
test/pdfs/issue1055.pdf.link
Normal file
@ -0,0 +1 @@
|
||||
http://mcpherrin.ca/code/mozilla/engl208b.pdf
|
@ -410,5 +410,12 @@
|
||||
"pageLimit": 3,
|
||||
"link": true,
|
||||
"type": "load"
|
||||
},
|
||||
{ "id": "issue1055",
|
||||
"file": "pdfs/issue1055.pdf",
|
||||
"md5": "3ba56c2e48dce81da8669b1b9cf98ff0",
|
||||
"rounds": 1,
|
||||
"link": true,
|
||||
"type": "eq"
|
||||
}
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user