Method: HexaPDF::Content::Canvas#stroke

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

#strokeObject

:call-seq:

canvas.stroke    => canvas

Strokes the path and returns self.

Examples:

#>pdf
canvas.polyline(10, 10, 120, 40, 50, 160)
canvas.stroke

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



1543
1544
1545
1546
1547
# File 'lib/hexapdf/content/canvas.rb', line 1543

def stroke
  raise_unless_in_path_or_clipping_path
  invoke0(:S)
  self
end