Sha256: e7c953383b7330453e6c2265a45a6012dce5c46b2c3ed95796e21a7dbc110a3f

Contents?: true

Size: 375 Bytes

Versions: 10

Compression:

Stored size: 375 Bytes

Contents

# encoding: utf-8

$LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib')
require "prawn"

Prawn::Document.generate("canvas.pdf") do
  canvas do
    text "This text should appear at the absolute top left"
    # stroke a line to show that the relative coordinates are the same as absolute
    stroke_line [bounds.left,bounds.bottom], [bounds.right,bounds.top]
  end
end

Version data entries

10 entries across 10 versions & 4 rubygems

Version Path
fullcirclegroup-fullcirclegroup-prawn-0.2.99.2 examples/canvas.rb
fullcirclegroup-prawn-0.2.99.3 examples/canvas.rb
satoko-prawn-0.2.99.6 examples/canvas.rb
prawn-0.1.0 examples/canvas.rb
prawn-0.1.2 examples/canvas.rb
prawn-0.1.1 examples/canvas.rb
prawn-0.2.1 examples/canvas.rb
prawn-0.2.2 examples/canvas.rb
prawn-0.2.0 examples/canvas.rb
prawn-0.2.3 examples/canvas.rb