Browse Source

Merge pull request #190 from sbarman/unicodecharts

Add check for reference in the Page class
Chris Jones 14 years ago
parent
commit
6561104d7e
  1. 3
      pdf.js

3
pdf.js

@ -2842,7 +2842,7 @@ var Page = (function() {
constructor.prototype = { constructor.prototype = {
getPageProp: function(key) { getPageProp: function(key) {
return this.pageDict.get(key); return this.xref.fetchIfRef(this.pageDict.get(key));
}, },
inheritPageProp: function(key) { inheritPageProp: function(key) {
var dict = this.pageDict; var dict = this.pageDict;
@ -3579,6 +3579,7 @@ var CanvasGraphics = (function() {
}, },
compile: function(stream, xref, resources, fonts) { compile: function(stream, xref, resources, fonts) {
resources = xref.fetchIfRef(resources) || new Dict();
var xobjs = xref.fetchIfRef(resources.get("XObject")) || new Dict(); var xobjs = xref.fetchIfRef(resources.get("XObject")) || new Dict();
var parser = new Parser(new Lexer(stream), false); var parser = new Parser(new Lexer(stream), false);

Loading…
Cancel
Save