class Prawn::SVG::Interface

Public Instance Methods

resize(opts = {}) click to toggle source
# File lib/asciidoctor-pdf/prawn-svg_ext/interface.rb, line 3
def resize opts = {}
  sizing = document.sizing
  sizing.requested_width = opts[:width]
  sizing.requested_height = opts[:height]
  sizing.calculate
end