Sha256: 778e4d326a616d8911d3db858e4661d78f4b894d1e8b03b0e9cee3eea1b4866d
Contents?: true
Size: 669 Bytes
Versions: 1
Compression:
Stored size: 669 Bytes
Contents
# encoding: utf-8 require_relative "../../lib/prawn" images = [ ["Type 0", "#{Prawn::BASEDIR}/data/images/web-links.png"], ["Type 2", "#{Prawn::BASEDIR}/data/images/ruport.png"], ["Type 3", "#{Prawn::BASEDIR}/data/images/indexed_color.png"], ["Type 4", "#{Prawn::BASEDIR}/data/images/page_white_text.png"], ["Type 6", "#{Prawn::BASEDIR}/data/images/dice.png"] ] Prawn::Document.generate("png_types.pdf", :page_size => "A5") do images.each do |header, file| start_new_page unless header.include?("0") fill_color "FF0000" fill_rectangle bounds.top_left, bounds.width, bounds.height text header image file, :at => [50, 450] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
prawn-2.0.2 | spec/acceptance/png.rb |