mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 07:08:08 +02:00
Merge pull request #190 from sbarman/unicodecharts
Add check for reference in the Page class
This commit is contained in:
commit
6561104d7e
1 changed files with 2 additions and 1 deletions
3
pdf.js
3
pdf.js
|
@ -2842,7 +2842,7 @@ var Page = (function() {
|
|||
|
||||
constructor.prototype = {
|
||||
getPageProp: function(key) {
|
||||
return this.pageDict.get(key);
|
||||
return this.xref.fetchIfRef(this.pageDict.get(key));
|
||||
},
|
||||
inheritPageProp: function(key) {
|
||||
var dict = this.pageDict;
|
||||
|
@ -3579,6 +3579,7 @@ var CanvasGraphics = (function() {
|
|||
},
|
||||
|
||||
compile: function(stream, xref, resources, fonts) {
|
||||
resources = xref.fetchIfRef(resources) || new Dict();
|
||||
var xobjs = xref.fetchIfRef(resources.get("XObject")) || new Dict();
|
||||
|
||||
var parser = new Parser(new Lexer(stream), false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue