Sha256: 7f1256feae256367cea6f15dc192b4de8eb193aa0b7df465cc85d733fe03cef8

Contents?: true

Size: 606 Bytes

Versions: 21

Compression:

Stored size: 606 Bytes

Contents

# encoding: utf-8
#
# These helpers will be familiar to Ruport users, and now are supported
# directly in Prawn.   Run the example to see how they work.
#
require "#{File.dirname(__FILE__)}/../example_helper.rb"

# 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

21 entries across 21 versions & 7 rubygems

Version Path
piglop-prawn-0.10.2.3 examples/graphics/ruport_style_helpers.rb
piglop-prawn-0.10.2.2 examples/graphics/ruport_style_helpers.rb
piglop-prawn-0.10.2.1 examples/graphics/ruport_style_helpers.rb
prawn-0.11.1.pre examples/graphics/ruport_style_helpers.rb
goodwill-prawn-edge-0.10.0 examples/graphics/ruport_style_helpers.rb
alphasights-prawn-0.10.4 examples/graphics/ruport_style_helpers.rb
alphasights-prawn-0.10.3 examples/graphics/ruport_style_helpers.rb
alphasights-prawn-0.10.2 examples/graphics/ruport_style_helpers.rb
alphasights-prawn-0.10.1 examples/graphics/ruport_style_helpers.rb
alphasights-prawn-0.10.0 examples/graphics/ruport_style_helpers.rb
prawn-core-0.8.4 examples/graphics/ruport_style_helpers.rb
prawn-graph-0.0.2 vendor/prawn-core/examples/graphics/ruport_style_helpers.rb
prawn-graph-0.0.1 vendor/prawn-core/examples/graphics/ruport_style_helpers.rb
prawn-core-0.7.2 examples/graphics/ruport_style_helpers.rb
prawn-core-0.7.1 examples/graphics/ruport_style_helpers.rb
prawn-layout-0.3.2 vendor/prawn-core/examples/graphics/ruport_style_helpers.rb
prawn-core-0.6.3 examples/graphics/ruport_style_helpers.rb
prawn-core-0.6.2 examples/graphics/ruport_style_helpers.rb
prawn-layout-0.3.1 vendor/prawn-core/examples/graphics/ruport_style_helpers.rb
prawn-core-0.6.1 examples/graphics/ruport_style_helpers.rb