Displaying 2 results from an estimated 2 matches for "absolute_bottom_margin".
2006 Jan 03
2
Pdf::Writer ; page numbering, and table wrapping
...;'s a more appropriate
place for me to ask these questions I''d appreciate being set straight.
I''m having a couple of misunderstandings/isssues first with page numbers
and secondly with auto-wrapping of simple_table.
First
pdf.start_page_numbering(pdf.margin_x_middle,
pdf.absolute_bottom_margin, 9, :center, nil, nil)
Using the default ''pattern'', is rendering ''x of N+1'' - or specifically
it always thinks that <TOTALPAGENUM> is 1 greater than the number of
pages in the document. I''ve rendered 1, 2 and 3 page documents, and it
responds w...
2006 May 05
8
pdf/writer: table.render_on best practices?
...llowing:
1) Setup pdf layout:
# Setup pdf layout
pdf.select_font("Helvetica", { :encoding => "WinAnsiEncoding"})
pdf.text " ", :font_size => 12, :justification => :center
s = 9
t = ''Seite <PAGENUM>''
y = pdf.absolute_bottom_margin - 5
x = pdf.absolute_right_margin
x -=(pdf.text_width(''Seite XX'', s))
pdf.start_page_numbering(x, y, s, nil, t, nil)
pdf.open_object do |heading|
pdf.save_state
pdf.stroke_color! Color::Black
pdf.stroke_style! PDF::Writer::StrokeS...