Method: CodeSlide::PDFFormatter#_prepare_options

Defined in:
lib/code_slide/pdf_formatter.rb

#_prepare_options(pdf, gravity) ⇒ Object



58
59
60
61
62
63
64
65
66
67
68
69
# File 'lib/code_slide/pdf_formatter.rb', line 58

def _prepare_options(pdf, gravity)
  width = pdf.width_of('M') * @analyzer.width
  height = pdf.height_of('M') * @analyzer.height

  width += @analyzer.gutter_width

  {
    document: pdf,
    overflow: :overflow,
    at: _box_position(pdf, width, height, gravity)
  }
end