mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Fix width and height for pattering bounding box.
This commit is contained in:
parent
bb1f976ef3
commit
e357b7a9f9
1 changed files with 4 additions and 2 deletions
6
pdf.js
6
pdf.js
|
@ -6356,8 +6356,10 @@ var TilingPattern = (function tilingPattern() {
|
|||
graphics.transform.apply(graphics, tmpScale);
|
||||
graphics.transform.apply(graphics, tmpTranslate);
|
||||
|
||||
if (bbox && isArray(bbox) && 4 == bbox.length) {
|
||||
graphics.rectangle(bbox[0], bbox[1], width, height);
|
||||
if (bbox && isArray(bbox) && 4 == bbox.length) {
|
||||
var bboxWidth = bbox[2] - bbox[0];
|
||||
var bboxHeight = bbox[3] - bbox[1];
|
||||
graphics.rectangle(bbox[0], bbox[1], bboxWidth, bboxHeight);
|
||||
graphics.clip();
|
||||
graphics.endPath();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue