Class: IrsForms::Form1096
- Inherits:
-
Form
- Object
- Form
- IrsForms::Form1096
show all
- Defined in:
- lib/irs_forms/form1096.rb
Instance Attribute Summary
Attributes inherited from Form
#data, #x_offset, #y_offset
Instance Method Summary
collapse
Methods inherited from Form
#initialize, #to_pdf
Constructor Details
This class inherits a constructor from IrsForms::Form
Instance Method Details
#template_filepath ⇒ Object
3
4
5
|
# File 'lib/irs_forms/form1096.rb', line 3
def template_filepath
super("f1096.pdf")
end
|
#to_prawn(options = {}) ⇒ Object
7
8
9
10
11
12
13
14
15
16
|
# File 'lib/irs_forms/form1096.rb', line 7
def to_prawn(options={})
options.reverse_merge!(with_template: false)
prawn_options = {:bottom_margin => 0.0}
prawn_options.merge!(:template => template_filepath) if options[:with_template]
@pdf = Prawn::Document.new(prawn_options)
render_data_to_prawn
@pdf
end
|