Skip to content
Browse files

A new example showing CMYK colour selection and image embedding

  • Loading branch information...
1 parent 827887e commit 286077da66c66c64e95380e5dce4f5cf5d6dea2f @yob yob committed Nov 1, 2008
Showing with 11 additions and 0 deletions.
  1. BIN data/images/fractal.jpg
  2. +11 −0 examples/cmyk.rb
View
BIN data/images/fractal.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
11 examples/cmyk.rb
@@ -0,0 +1,11 @@
+# encoding: utf-8
+
+$LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib')
+require "prawn"
+
+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

0 comments on commit 286077d

Please sign in to comment.
Something went wrong with that request. Please try again.