mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
Merge pull request #12339 from Snuffleupagus/bug-1663390
Support broken /FitH destinations that are missing the "top" value (bug 1663390)
This commit is contained in:
commit
ed47f77527
1 changed files with 4 additions and 0 deletions
|
@ -852,6 +852,10 @@ class BaseViewer {
|
|||
if (y === null && this._location) {
|
||||
x = this._location.left;
|
||||
y = this._location.top;
|
||||
} else if (typeof y !== "number") {
|
||||
// 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;
|
||||
}
|
||||
break;
|
||||
case "FitV":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue