Sha256: 16dc5328151073faaa9cbd0caa629a5f9eabf5f847df76a4fbfb1d47b4194913

Contents?: true

Size: 443 Bytes

Versions: 8

Compression:

Stored size: 443 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_vertical_line_at 300, 50, 250

end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
satoko-prawn-0.2.99.6 examples/ruport_helpers.rb
prawn-0.1.0 examples/ruport_helpers.rb
prawn-0.1.2 examples/ruport_helpers.rb
prawn-0.1.1 examples/ruport_helpers.rb
prawn-0.2.0 examples/ruport_helpers.rb
prawn-0.2.1 examples/ruport_helpers.rb
prawn-0.2.2 examples/ruport_helpers.rb
prawn-0.2.3 examples/ruport_helpers.rb