Sha256: 9b2c0ddf1fa9b9d1cd982f2ec25cf36e8de4be1c1665850da6970bfcf9f2fd20
Contents?: true
Size: 542 Bytes
Versions: 5
Compression:
Stored size: 542 Bytes
Contents
# encoding: utf-8 # # An early example of basic text generation at absolute positions. # Mostly kept for nostalgia. # $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', '..', 'lib')) require "prawn" Prawn::Document.generate "simple_text.pdf" do fill_color "0000ff" text "Hello World", :at => [200,420], :size => 32, :rotate => 45 font "Times-Roman" fill_color "ff0000" text "Using Another Font", :at => [5,5] start_new_page font "Courier" text "Goodbye World", :at => [288,50] end
Version data entries
5 entries across 5 versions & 2 rubygems