mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Prevent PartialEvaluator_buildFormXObject
from failing if the Matrix
or BBox
contains indirect objects
This patch fixes yet another instance of bad PDF data, specifically a case where the `BBox` array contains indirect objects (i.e. `Ref`s). Fixes the missing image in http://www.int.washington.edu/talks/WorkShops/int_08_37W/People/Franz_M/Franz.pdf#page=24. *Note:* There are missing images on a number of the pages in that file.
This commit is contained in:
parent
75557d27d1
commit
1b8cb52555
4 changed files with 11 additions and 2 deletions
|
@ -126,8 +126,8 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
|
|||
xobj, smask,
|
||||
operatorList,
|
||||
initialState) {
|
||||
var matrix = xobj.dict.get('Matrix');
|
||||
var bbox = xobj.dict.get('BBox');
|
||||
var matrix = xobj.dict.getArray('Matrix');
|
||||
var bbox = xobj.dict.getArray('BBox');
|
||||
var group = xobj.dict.get('Group');
|
||||
if (group) {
|
||||
var groupOptions = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue