mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Merge pull request #14386 from Snuffleupagus/issue-14385
Ignore *negative* /FitH parameters in the viewer (issue 14385)
This commit is contained in:
commit
afa43d3af0
1 changed files with 1 additions and 1 deletions
|
@ -1173,7 +1173,7 @@ class BaseViewer {
|
|||
if (y === null && this._location) {
|
||||
x = this._location.left;
|
||||
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
|
||||
// bad PDF generators will pretend that it is (fixes bug 1663390).
|
||||
y = pageHeight;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue