File: color_space_issues.rb

package info (click to toggle)
ruby-prawn 1.0.0~rc1%2Bdfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 4,248 kB
  • sloc: ruby: 17,499; sh: 44; makefile: 17
file content (19 lines) | stat: -rw-r--r-- 511 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# encoding: utf-8
#
#
$LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib')
require 'rubygems'
require 'prawn'

##
# This bug is simplification of issue #183. 
# When the bug is fixed then a rectangle should show on both pages in Acrobat Reader.

pdf = Prawn::Document.generate("color_space_issues.pdf", :page_layout => :landscape) do
  stroke_color "000000"
  stroke { rectangle([10, bounds.top], 10, 10) }
  start_new_page
  stroke_color "000000"
  stroke { rectangle([10, bounds.top], 10, 10) }
end