Class: Idml::Render::Renderers::PathRenderer

Inherits:
Object
  • Object
show all
Defined in:
lib/idml/render/renderers/path_renderer.rb

Overview

Renders an IDML Path (standalone compound path) on a Pdfrb::Content::Canvas. Delegates to RectangleRenderer which draws the bounding box with fill/stroke. Approximation: a true compound path would draw each sub-path from the EntirePath list or PathPoint children; the bounding box renders the correct extent and colors. See TODO 106 for refinement.

Class Method Summary collapse

Class Method Details

.render(canvas, context) ⇒ Object



13
14
15
# File 'lib/idml/render/renderers/path_renderer.rb', line 13

def self.render(canvas, context)
  RectangleRenderer.render(canvas, context)
end