We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f70c859 commit 7285e86Copy full SHA for 7285e86
app/models/lease/envelope.rb
@@ -32,7 +32,7 @@ def sign(vars)
32
33
def with_generate_pdf(html)
34
random = SecureRandom.hex(4)
35
- pdf_string = WickedPdf.new.pdf_from_string(html, extra: '--enable-forms')
+ pdf_string = WickedPdf.new.pdf_from_string(html, extra: '--enable-forms', footer: { right: "v#{template.version rescue nil}" })
36
pdf_file_name = Rails.root.join('tmp', 'pdf_lease_documents', "pdf-lease-#{envelopable.id}-#{random}.pdf")
37
pdf_file = File.new(pdf_file_name, 'a+:ASCII-8BIT')
38
pdf_file.write(pdf_string)
0 commit comments