Skip to content

Instantly share code, notes, and snippets.

@xarimanx
Forked from henrik/prawn_stamp.rb
Created November 13, 2018 12:30
Show Gist options
  • Save xarimanx/1fe70df8f63c06b0f7ea18faed18ab98 to your computer and use it in GitHub Desktop.
Save xarimanx/1fe70df8f63c06b0f7ea18faed18ab98 to your computer and use it in GitHub Desktop.

Revisions

  1. @henrik 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")