Sha256: cab91b091f1a77fc767223c59de558b396fe10706bac6c46ac6e8ccf25a949d2

Contents?: true

Size: 359 Bytes

Versions: 21

Compression:

Stored size: 359 Bytes

Contents

# encoding: utf-8
#
# Demonstrates Prawn's support for CMYK images and colors.
#
require "#{File.dirname(__FILE__)}/../example_helper.rb"

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

21 entries across 21 versions & 7 rubygems

Version Path
prawn-core-0.5.1 examples/graphics/cmyk.rb