Draws an SVG document into the PDF.
options must contain the key :at, which takes a tuple of x and y co-ordinates.
options can optionally contain the key :width or :height. If both are specified, only :width will be used. If neither are specified, the resolution given in the SVG will be used.
Example usage:
svg IO.read("example.svg"), :at => [100, 300], :width => 600
# File lib/prawn/svg/extension.rb, line 17 def svg(data, options={}) svg = Prawn::Svg::Interface.new(data, self, options) svg.draw {:warnings => svg.document.warnings, :width => svg.document.width, :height => svg.document.height} end
Generated with the Darkfish Rdoc Generator 2.