From: IonuČ› G. Stan Date: Thu, 27 Oct 2011 00:08:11 +0000 (+0300) Subject: Close path in `closeFillStroke` and `closeEOFillStroke` X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=56b9a3543dfd365fb065a85ac056d29064c72797;p=pdf.js.git Close path in `closeFillStroke` and `closeEOFillStroke` See Chapter 4, page 230, Table 4.10 of the PDF specification. --- diff --git a/pdf.js b/pdf.js index 05a2153..43df4a1 100644 --- a/pdf.js +++ b/pdf.js @@ -5643,10 +5643,12 @@ var CanvasGraphics = (function canvasGraphics() { this.restoreFillRule(savedFillRule); }, closeFillStroke: function canvasGraphicsCloseFillStroke() { - return this.fillStroke(); + this.closePath(); + this.fillStroke(); }, closeEOFillStroke: function canvasGraphicsCloseEOFillStroke() { var savedFillRule = this.setEOFillRule(); + this.closePath(); this.fillStroke(); this.restoreFillRule(savedFillRule); },