Method: PDF::Wrapper::TextImageCell#initialize

Defined in:
lib/pdf/wrapper/text_image_cell.rb

#initialize(str, filename, width, height) ⇒ TextImageCell

Returns a new instance of TextImageCell.



11
12
13
14
15
16
17
18
19
# File 'lib/pdf/wrapper/text_image_cell.rb', line 11

def initialize(str, filename, width, height)
  @text = str.to_s
  @filename = filename
  @min_width = width
  @natural_width = width
  @max_width = width
  @height = height
  @options = {}
end