I have an image that is designed for A4 proportions. I am trying to stretch it and make it fit into a US LETTER page. The following code (with the attached image as "test.png") leaves a blank white column on the right. The correct behavior is (I think) for the image to be stretched to the right.
require 'prawn'
Prawn::Document.generate "test.pdf", :page_size => "LETTER", :margin => [0, 0, 0, 0] do
image "test.png", fit: [612, 792], at: [0, 792]
end
I have an image that is designed for A4 proportions. I am trying to stretch it and make it fit into a US LETTER page. The following code (with the attached image as "test.png") leaves a blank white column on the right. The correct behavior is (I think) for the image to be stretched to the right.