Merge pull request #521 from notmasteryet/tree-24
Fix mediaBox check (regr. of #519)
This commit is contained in:
commit
b82065ec4b
2
pdf.js
2
pdf.js
@ -3322,7 +3322,7 @@ var Page = (function pagePage() {
|
|||||||
get mediaBox() {
|
get mediaBox() {
|
||||||
var obj = this.inheritPageProp('MediaBox');
|
var obj = this.inheritPageProp('MediaBox');
|
||||||
// Reset invalid media box to letter size.
|
// Reset invalid media box to letter size.
|
||||||
if (!IsArray(obj) || obj.length === 4)
|
if (!IsArray(obj) || obj.length !== 4)
|
||||||
obj = [0, 0, 612, 792];
|
obj = [0, 0, 612, 792];
|
||||||
return shadow(this, 'mediaBox', obj);
|
return shadow(this, 'mediaBox', obj);
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user