Method: HexaPDF::Content::Canvas#close_stroke

Defined in:
lib/hexapdf/content/canvas.rb

#close_strokeObject

:call-seq:

canvas.close_stroke    => canvas

Closes the last subpath and then strokes the path. Returns self.

Examples:

#>pdf
canvas.polyline(10, 10, 120, 40, 50, 160)      # No line from the top to the left
canvas.close_stroke

See: PDF2.0 s8.5.3.1, s8.5.3.2, #stroke, #close_fill_stroke



1561
1562
1563
1564
1565
# File 'lib/hexapdf/content/canvas.rb', line 1561

def close_stroke
  raise_unless_in_path_or_clipping_path
  invoke0(:s)
  self
end