Displaying 2 results from an estimated 2 matches for "add_text_wrap".
2008 Apr 09
0
PDF::Writer add_text_wrap
Wondering if anyone else had problems with the add_text_wrap of the
pdf-writer gem? I have something that looks like the following below,
but it does not wrap down to the next line, it just either runs off
the page or stops before the page, depending on the width of the
text_wrap. Anyone have any ideas?
@additional_items = @user.additional_items
pdf.add_tex...
2006 Jun 13
2
Top margin on PDF generated with PDF::Writer
...pdf.start_columns(2, 0)
pdf.select_font "Times-Roman"
10.times do
pdf.open_object do |card|
pdf.save_state
pdf.image "public/images/card.png", :justification => :left,
:width => PDF::Writer.cm2pts(10.5), :height => PDF::Writer.cm2pts(6)
#pdf.add_text_wrap(0, pdf.y, PDF::Writer.cm2pts(1), "Test1", 12, :left, 0)
#pdf.add_text_wrap(PDF::Writer.cm2pts(8.5), pdf.y,
PDF::Writer.cm2pts(6), "Test2", 12, :center, 90)
pdf.restore_state
pdf.close_object
pdf.add_object(card, :this_page)
end
end
pdf.save_as(&qu...