Method: HexaPDF::Content::GraphicObject::Geom2D#path_only

Defined in:
lib/hexapdf/content/graphic_object/geom2d.rb

#path_onlyObject

Specifies whether only paths should be drawn or if they should be stroked/filled too (the default).

Examples:

#>pdf-center
canvas.draw(:geom2d, object: ::Geom2D::Segment([0, 0], [0, 50]))
canvas.draw(:geom2d, object: ::Geom2D::Segment([0, 0], [50, 0]), path_only: true)


94
95
96
# File 'lib/hexapdf/content/graphic_object/geom2d.rb', line 94

def path_only
  @path_only
end