mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Add basic support for transparency groups.
This commit is contained in:
parent
3f195f3308
commit
725cd5407f
6 changed files with 2318 additions and 26 deletions
|
@ -2145,10 +2145,6 @@ var PageView = function pageView(container, pdfPage, id, scale,
|
|||
// TODO(mack): use data attributes to store these
|
||||
ctx._scaleX = outputScale.sx;
|
||||
ctx._scaleY = outputScale.sy;
|
||||
ctx.save();
|
||||
ctx.fillStyle = 'rgb(255, 255, 255)';
|
||||
ctx.fillRect(0, 0, canvas.width, canvas.height);
|
||||
ctx.restore();
|
||||
if (outputScale.scaled) {
|
||||
ctx.scale(outputScale.sx, outputScale.sy);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue