Displaying 2 results from an estimated 2 matches for "all_pag".
Did you mean:
call_pam
2006 Jan 03
2
Pdf::Writer ; page numbering, and table wrapping
...1 of 3", "1 of 4", etc. Using the pattern
string (''<PAGENUM> of <TOTALPAGENUM>'' results in the same output.
Secondly,
the auto-wrapping of tables, runs directly into both the before
mentioned page numbers, and into a header added via add_object(..,
:all_pages).
Is there a way to configure the auto-wrapping of tables to skip a Y? I''m
configuring the other paths, so I do know in advance where wrapping
should start, and begin.
Thanx for any thoughts.
cheers,
Jodi
--
Posted via http://www.ruby-forum.com/.
2006 May 05
8
pdf/writer: table.render_on best practices?
...w = pdf.absolute_right_margin
y -= (pdf.font_height(s) * 1.01)
pdf.line(x, y, w, y).stroke
y = pdf.absolute_bottom_margin + pdf.font_height(9) - 2
pdf.line(x, y, w, y).stroke
pdf.restore_state
pdf.close_object
pdf.add_object(heading, :all_pages)
end
2) create a table:
table = PDF::SimpleTable.new
3) populate the table
table.data = dataArray
4) set which rows are displayed, and in which order:
table.column_order = rows
(Note: only some rows are displayed)
5) I set the width:
table.width = pdf.absolute_right_margin - pdf.absolut...