Method: HexaPDF::Content::Canvas#draw

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

#draw(name, **options) ⇒ Object

:call-seq:

canvas.draw(obj, **options)      => canvas
canvas.draw(name, **options)     => canvas

Draws the given graphic object on the canvas.

This is the same as “graphic_object(obj_or_name, **options).draw(self)”.

See #graphic_object for details on the arguments and invocation.



1526
1527
1528
1529
# File 'lib/hexapdf/content/canvas.rb', line 1526

def draw(name, **options)
  graphic_object(name, **options).draw(self)
  self
end