Skip to content

Instantly share code, notes, and snippets.

@henrik
Created February 16, 2012 16:47
Show Gist options
  • Select an option

  • Save henrik/1846377 to your computer and use it in GitHub Desktop.

Select an option

Save henrik/1846377 to your computer and use it in GitHub Desktop.

Revisions

  1. henrik created this gist Feb 16, 2012.
    13 changes: 13 additions & 0 deletions prawn_stamp.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    create_stamp("stamp") do
    fill_color "cc0000"
    text_box "[PAID]",
    :size => 2.cm,
    :width => bounds.width,
    :height => bounds.height,
    :align => :center,
    :valign => :center,
    :at => [0, bounds.height],
    :rotate => 45,
    :rotate_around => :center
    end
    stamp("stamp")