what exactly is the problem here?
and for adding it to all pages you can do this:
Prawn::Document.generate('hello.pdf') do |pdf|
pdf.page_count.times do |i|
pdf.image "image.jpg", :at => [pdf.bounds.right - 100, 0], :align => :right
pdf.number_pages "<page> in a total of <total>", :start_count_at => 0, :page_filter => :all, :at => [pdf.bounds.right - 100, 0], :align => :right, :size => 14
there might be better alternatives, but i never used prawn before.
The issue is that your pdf.image method doesn't have a :page_filter => :all parameter on it, and this method is not an option for pdf.image. I need to the image to be placed on every page.
That's creative, .go_to_page is a new one for me and will be helpful in other scenarios as well. Thanks for the tip.