mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Ensure that we don't ignore 0
values in Page.getInheritedPageProp
(issue 8125)
It appears that I accidentally broke this in PR 6065, sorry about that! The issue in this particular PDF file is that there's `/Rotate` entries on different levels of the `/Pages` tree. We're supposed to use the `/Rotate` entry in the `/Page` dict (which is `0`), but because of an incorrect condition we instead ended up with the one from the `/Pages` dict (which is `180`). Fixes 8125.
This commit is contained in:
parent
9163a6fba4
commit
4a0ff5dbf7
4 changed files with 78 additions and 1 deletions
|
@ -112,7 +112,7 @@ var Page = (function PageClosure() {
|
|||
// e.g. \Resources placed on multiple levels of the tree.
|
||||
while (dict) {
|
||||
var value = getArray ? dict.getArray(key) : dict.get(key);
|
||||
if (value) {
|
||||
if (value !== undefined) {
|
||||
if (!valueArray) {
|
||||
valueArray = [];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue