Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'rubygems'
- require 'prawn'
- Prawn::Document.generate 'test.pdf' do |pdf|
- pdf.stroke_color = 'FF0000'
- pdf.bounding_box [0, pdf.bounds.top], :width => 20, :height => 20 do
- pdf.stroke_bounds
- end
- pdf.bounding_box [22, pdf.bounds.top], :width => 20, :height => 20 do
- pdf.stroke_bounds
- end
- end
Add Comment
Please, Sign In to add comment