I have an image image.jpg that I want to place in a footer at the bottom left of every page. I am currently doing that, using Ruby 1.9.3 and the prawn gem to create a PDF, like so :
start_new_page
image "image.jpg", :at => [0,30]
There are two issues with this :
1) I am creating pages dynamically, and I need the image placed on all pages. Since I never know how many pages will be created, I don't know how to place an image on each page.
2) My tables within my PDF are being written on top of the logo, causing the logo to not be visible.
I found this code snippet in a sample:
number_pages "<page> in a total of <total>", { :start_count_at => 0, :page_filter => :all, :at => [bounds.right - 50, 0], :align => :right, :size => 14 }
This will place text on each page, dynamically just the way I want it to; however, it doesn't work with images.
How can I place an image on the bottom left of each page within my document?