Close path in closeFillStroke
and closeEOFillStroke
See Chapter 4, page 230, Table 4.10 of the PDF specification.
This commit is contained in:
parent
a17b13019b
commit
56b9a3543d
4
pdf.js
4
pdf.js
@ -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);
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user