Support broken /FitH destinations that are missing the "top" value (bug 1663390)
See https://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/PDF32000_2008.pdf#G11.2095870
This commit is contained in:
parent
20c891542b
commit
f78b348cff
@ -852,6 +852,10 @@ 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") {
|
||||||
|
// 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;
|
break;
|
||||||
case "FitV":
|
case "FitV":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user