1
0
Fork 0
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:
Brendan Dahl 2013-03-12 17:20:38 -07:00
parent 3f195f3308
commit 725cd5407f
6 changed files with 2318 additions and 26 deletions

View file

@ -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);
}