mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 01:58:06 +02:00
Normalize the BBox of form XObjects on the /core side
This commit is contained in:
parent
ecbdc508f7
commit
9cd5f94f03
3 changed files with 7 additions and 2 deletions
|
@ -299,6 +299,11 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
|
|||
var dict = xobj.dict;
|
||||
var matrix = dict.getArray('Matrix');
|
||||
var bbox = dict.getArray('BBox');
|
||||
if (Array.isArray(bbox) && bbox.length === 4) {
|
||||
bbox = Util.normalizeRect(bbox);
|
||||
} else {
|
||||
bbox = null;
|
||||
}
|
||||
var group = dict.get('Group');
|
||||
if (group) {
|
||||
var groupOptions = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue