Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Inline a couple of
isRef
/isDict
checks in the getPageDict
method
As we've seen in numerous other cases, avoiding unnecessary function calls is never a bad thing (even if the effect is probably tiny here). With these changes we also avoid potentially two back-to-back `isDict` checks when evaluating possible Page nodes, and can also no longer accidentally pick a dictionary with an incorrect /Type.
- Loading branch information