Displaying 1 result from an estimated 1 matches for "cm2pts".
Did you mean:
cgopts
2006 Jun 13
2
Top margin on PDF generated with PDF::Writer
...::Writer.new(:paper => "A4")
pdf.margins_cm(0)
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...