Close path in closeFillStroke and closeEOFillStroke

See Chapter 4, page 230, Table 4.10 of the PDF specification.
This commit is contained in:
Ionuț G. Stan 2011-10-27 03:08:11 +03:00
parent a17b13019b
commit 56b9a3543d

4
pdf.js
View File

@ -5643,10 +5643,12 @@ var CanvasGraphics = (function canvasGraphics() {
this.restoreFillRule(savedFillRule); this.restoreFillRule(savedFillRule);
}, },
closeFillStroke: function canvasGraphicsCloseFillStroke() { closeFillStroke: function canvasGraphicsCloseFillStroke() {
return this.fillStroke(); this.closePath();
this.fillStroke();
}, },
closeEOFillStroke: function canvasGraphicsCloseEOFillStroke() { closeEOFillStroke: function canvasGraphicsCloseEOFillStroke() {
var savedFillRule = this.setEOFillRule(); var savedFillRule = this.setEOFillRule();
this.closePath();
this.fillStroke(); this.fillStroke();
this.restoreFillRule(savedFillRule); this.restoreFillRule(savedFillRule);
}, },