Why my text got truncated in PDF in rails 3.1.12 -
i have upgraded rails version last month 3.0.6 3.1.12. working on accounting application need send invoices in pdf format, have used prawn, felt issue account description got truncated in pdf format, don't know why?
here part of code printing table data in invoice:
for in @invoice_line_items data += [["#{i.item_name}","#{i.description}",{:content =>"#{i.quantity}",:align => :right},{:content => "#{i.unit_rate.to_s}", :align => :right},{:content => "#{i.discount_percent}", :align => :right},{:content => "#{i.amount.to_s}", :align => :right}]] end
here screen shot : 1) pdf file:
2) view screen :
is buddy have idea missing? can see have many lines in view file truncated in pdf format
hi friends found solution of problem, after inspecting code found using line hight property, due line has been truncated per size , content truncated , have removed line height , working fine
Comments
Post a Comment