Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

A new example showing CMYK colour selection and image embedding

  • Loading branch information...
commit 286077da66c66c64e95380e5dce4f5cf5d6dea2f 1 parent 827887e
@yob yob authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.