The indent of a table collapses.

15 views
Skip to first unread message

naopontan

unread,
Jan 24, 2012, 5:54:21 AM1/24/12
to prawn...@googlegroups.com
Hi,
I am not good at English.
I am using prawn version 0.8.4

When a table with many lines is indented and printed, after new page, an indent will become invalid.
Even if it new page, what should I do for maintaining an indent?

-- Source Code ---
require 'rubygems'
require 'prawn'
require 'prawn/layout'
require "prawn/measurement_extensions"
Prawn::Document.generate('/tmp/foo.pdf', :page_size => "A4") do
  text "foo"

  indent(100) do
    data = (1..50).inject([]) {|memo, i| memo << ['aaa', 'bbb', i.to_s]}
    table data, {:headers => %w(AAA BBB CCC)}
  end
end

foo.pdf

Brad Ediger

unread,
Feb 7, 2012, 9:54:48 PM2/7/12
to prawn...@googlegroups.com
On Tue, Jan 24, 2012 at 4:54 AM, naopontan <naop...@gmail.com> wrote:
> Hi,
> I am not good at English.
> I am using prawn version 0.8.4
>
> When a table with many lines is indented and printed, after new page, an
> indent will become invalid.
> Even if it new page, what should I do for maintaining an indent?

Prawn's table API completely changed in early 2010, with Prawn 0.9.1.
Please upgrade and let us know if you have problems with the new table
API.

Thanks,
-be

Reply all
Reply to author
Forward
0 new messages