Sha256: 076cfdc4bdfdabf25054586da30685966d12b22a54c7222a396cb6c94020f67d
Contents?: true
Size: 398 Bytes
Versions: 18
Compression:
Stored size: 398 Bytes
Contents
pdf.font_size = 8 time_string = Time.now.strftime("Generated on %-m/%-d/%y at %l:%M %p") absolute_bottom = pdf.bounds.absolute_bottom time_y = 14 - absolute_bottom pdf.repeat :all do pdf.draw_text time_string, at: [0,time_y] end string = "Page <page> of <total>" options = { :at => [pdf.bounds.right - 150, 20-absolute_bottom], :width => 150, :align => :right } pdf.number_pages string, options
Version data entries
18 entries across 9 versions & 1 rubygems