Class: Merlot::Stamper

Inherits:
Object
  • Object
show all
Defined in:
lib/merlot.rb

Constant Summary collapse

'blank_template.pdf'

Class Method Summary collapse

Class Method Details

.stamp(string, file_location, save_location) ⇒ Object

  1. Create a blank template with the <string> stamp on the bottom of the page

  2. Call pdftk with the arguments :

    <attachment file name> pdf file, 
     stamp, 
     blank_template.pdf, 
     output, 
     <output-folder>/<attachment file name>.pdf
    
This will stamp the given string on every page of the pdf file


17
18
19
20
# File 'lib/merlot.rb', line 17

def self.stamp(string, file_location, save_location)
  create_footer(string)
  stamp_all_pages(file_location, save_location)
end