Sha256: 2e0a0fdb944ea7f4d694b417fc0a2b4869876f278958951fa3e8743b13fba7c5
Contents?: true
Size: 492 Bytes
Versions: 2
Compression:
Stored size: 492 Bytes
Contents
# encoding: utf-8 $LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib') require "prawn" # Demonstrates some features stolen from Ruport::Formatter::PDF Prawn::Document.generate("ruport.pdf") do move_down 50 # TODO: Figure out where to set the y cursor to. stroke_horizontal_rule text "Hi there" pad(50) { text "I'm Padded" } text "I'm far away" stroke_horizontal_line 50, 100 stroke_horizontal_line 50, 100, :at => 300 stroke_vertical_line 300, 50, :at => 250 end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
fullcirclegroup-fullcirclegroup-prawn-0.2.99.2 | examples/ruport_helpers.rb |
fullcirclegroup-prawn-0.2.99.3 | examples/ruport_helpers.rb |