Sha256: 4231770083ff5d8e56bbe0a47a1f817771645852fd820d87d80bf9e1c8ebd900

Contents?: true

Size: 767 Bytes

Versions: 2

Compression:

Stored size: 767 Bytes

Contents

# encoding: utf-8
#
# Prawn manual how to read this manual page. 
#
require File.expand_path(File.join(File.dirname(__FILE__),
                                   %w[.. example_helper]))

filename = File.basename(__FILE__).gsub('.rb', '.pdf')
Prawn::Example.generate(filename) do
  move_down 200

  image "#{Prawn::DATADIR}/images/prawn.png",
        :scale => 0.9,
        :at => [10, cursor]
        
  formatted_text_box([ {:text => "Prawn\n",
                        :styles => [:bold],
                        :size => 100}
                     ], :at => [170, cursor - 50])

  formatted_text_box([ {:text => "by example",
                        :font => 'Courier',
                        :size => 60}
                     ], :at => [170, cursor - 160])
  
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
prawn-1.0.0.rc2 manual/manual/cover.rb
nurettin-prawn-1.0.0.rc1 manual/manual/cover.rb