Class: Merlot::Stamper
- Inherits:
-
Object
- Object
- Merlot::Stamper
- Defined in:
- lib/merlot.rb
Constant Summary collapse
- FOOTER_PDF =
'blank_template.pdf'
Class Method Summary collapse
Class Method Details
.stamp(string, file_location, save_location) ⇒ Object
-
Create a blank template with the <string> stamp on the bottom of the page
-
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) (string) stamp_all_pages(file_location, save_location) end |