Sha256: 873e054ba63132e6a5047f30ef5b23fbd81c02614782acf3627eba16f84d532e

Contents?: true

Size: 420 Bytes

Versions: 3

Compression:

Stored size: 420 Bytes

Contents

# encoding: utf-8
#
# Demonstrates Prawn's support for CMYK images and colors.
#
require File.expand_path(File.join(File.dirname(__FILE__),
                                   %w[.. example_helper]))

Prawn::Document.generate("cmyk.pdf", :page_layout => :landscape) do
  fill_color 50, 100, 0, 0
  text "Prawn is CYMK Friendly"
  fractal = "#{Prawn::BASEDIR}/data/images/fractal.jpg"
  image fractal, :at => [50,450]
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
prawn-0.12.0 examples/graphics/cmyk.rb
prawn-0.11.1 examples/graphics/cmyk.rb
davebenvenuti-prawn-0.11.1.pre examples/graphics/cmyk.rb