Sha256: 0136c7814871320f1c2e14b52303d6b8b89c154301a0dcb748278b6f777b5756
Contents?: true
Size: 768 Bytes
Versions: 2
Compression:
Stored size: 768 Bytes
Contents
# encoding: utf-8 $LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib') require "prawn" Prawn::Document.generate("image-flow.pdf", :page_layout => :landscape) do font.size = 8 stef = "#{Prawn::BASEDIR}/data/images/stef.jpg" text "Image at default position with no arguments" move_down 10 image stef text "Centered image flowing" image stef, :position => :center text "Right aligned image flowing" image stef, :position => :right text "Explicitly left aligned image flowing" move_down 10 image stef, :position => :left text "Flowing image at x=50" image stef, :position => 50 end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
fullcirclegroup-fullcirclegroup-prawn-0.2.99.2 | examples/image_flow.rb |
fullcirclegroup-prawn-0.2.99.3 | examples/image_flow.rb |