prawn:Prawn::Document::Text#text
まんま
#!/usr/bin/env ruby require "prawn" pdf = Prawn::Document.new pdf.text "Hello World", :at => [100,100] pdf.text "Goodbye World", :at => [50,50], :size => 16 pdf.text "Will be wrapped when it hits the edge of your bounding box" pdf.text "This will be centered", :align => :center pdf.text "This will be right aligned", :align => :right pdf.text "This will be wrapped by character", :wrap => :character pdf.render_file(File.basename($0, ".rb") + ".pdf")