# File lib/prawn/stamp.rb, line 29 def stamp_at(user_defined_name, point) # Save the graphics state add_content "q" # Translate the user space x,y = point translate_position = "1 0 0 1 %.3f %.3f cm" % [x, y] add_content translate_position # Draw the stamp in the now translated user space stamp(user_defined_name) # Restore the graphics state to remove the translation add_content "Q" end