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: here in pdf file description got truncated

2) view screen :here in view screen have many lines in description

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

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -