Hi,

Use the :column_widths=>{0=>100,1=>100, 2=>100, etc..} property.

Jan


On Aug 13, 9:27 am, Jeffrey Bonson <[email protected]> wrote:
> I have a file named report.pdf.prawn,
> which is the view part of my PDF file where we can edit the contents of
> the PDF file like >>>
> pdf=Prawn::Document.new(:page_layout =>:landscape,:page_size => 'A4')
> pdf.text"Hello"
>
> he...@headers
> headers=[""],[""]
> pdf.table headers,
> :width => 768,
> :size => 11,
> :border_style => :underline_header,
> :headers => [head.titleize],
> :header_color => 'b7e3fe',
> :padding=>5
>
> <<< etc ect...
> The above just prints like
>
> Hello
> Header1header2header3
>
> I have two values from my controller  >>>  def report <<<  as
> @header and @data
>
> @header gives values like>> Header1Header2Header3
> @data gives values like>> data11data12data13data21data22data23
>
> How do i print the values like the format given below on all PDF pages
> being generated?
>
> Header1  Header2   Header3
>
> data11    data12   data13
> data21    data22   data23
> data31    data32   data33
> data41    data42   data33
>
> Please help.
> --
> Posted viahttp://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to