Merge pull request #14386 from Snuffleupagus/issue-14385
Ignore *negative* /FitH parameters in the viewer (issue 14385)
This commit is contained in:
commit
afa43d3af0
@ -1173,7 +1173,7 @@ class BaseViewer {
|
|||||||
if (y === null && this._location) {
|
if (y === null && this._location) {
|
||||||
x = this._location.left;
|
x = this._location.left;
|
||||||
y = this._location.top;
|
y = this._location.top;
|
||||||
} else if (typeof y !== "number") {
|
} else if (typeof y !== "number" || y < 0) {
|
||||||
// The "top" value isn't optional, according to the spec, however some
|
// The "top" value isn't optional, according to the spec, however some
|
||||||
// bad PDF generators will pretend that it is (fixes bug 1663390).
|
// bad PDF generators will pretend that it is (fixes bug 1663390).
|
||||||
y = pageHeight;
|
y = pageHeight;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user