diff --git a/pdf.js b/pdf.js index 23784ac7a..b967f177f 100644 --- a/pdf.js +++ b/pdf.js @@ -1592,6 +1592,7 @@ var Interpreter = (function() { re: gfx.rectangle, S: gfx.stroke, f: gfx.fill, + "f*": gfx.eoFill, B: gfx.fillStroke, b: gfx.closeFillStroke, n: gfx.endPath, @@ -1740,6 +1741,9 @@ var EchoGraphics = (function() { fill: function() { this.printdentln("f"); }, + eoFill: function() { + this.printdentln("f*"); + }, fillStroke: function() { this.printdentln("B"); }, @@ -1951,6 +1955,10 @@ var CanvasGraphics = (function() { this.ctx.fill(); this.consumePath(); }, + eoFill: function() { + // TODO: needs to support even-odd winding rule + this.fill(); + }, fillStroke: function() { this.ctx.fill(); this.ctx.stroke();