Sha256: 33e122c9988773832408bc9cedf92b1d2b77cacefab3e8fb9ccb96eda9a1ce5e
Contents?: true
Size: 625 Bytes
Versions: 8
Compression:
Stored size: 625 Bytes
Contents
# encoding: utf-8 # # To scale an image use the <code>:scale</code> option. # # It scales the image proportionally given the provided value. # require File.expand_path(File.join(File.dirname(__FILE__), %w[.. example_helper])) filename = File.basename(__FILE__).gsub('.rb', '.pdf') Prawn::Example.generate(filename) do text "Normal size" image "#{Prawn::DATADIR}/images/stef.jpg" move_down 20 text "Scaled to 50%" image "#{Prawn::DATADIR}/images/stef.jpg", :scale => 0.5 move_down 20 text "Scaled to 200%" image "#{Prawn::DATADIR}/images/stef.jpg", :scale => 2 end
Version data entries
8 entries across 8 versions & 2 rubygems