1
0
Fork 0
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:
Chris Jones 2011-07-05 10:02:33 -07:00
commit 6561104d7e

3
pdf.js
View file

@ -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);