Merge pull request #190 from sbarman/unicodecharts
Add check for reference in the Page class
This commit is contained in:
commit
6561104d7e
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…
x
Reference in New Issue
Block a user