I'm generating a pdf with prawn. Basically, I generate the document and I fill it with some images.
The problem comes when I download the file and I try to print it. The dimensions are not set to the ones I previously specified.
pdf = Prawn::Document.new(page_size: "A3", margin: PAGE_MARGIN, page_layout: :landscape)
Using prawn 1.3.0:
require "prawn" pdf = Prawn::Document.new(:page_size => 'A3') pdf.text "Hello World!" pdf.render_file("export.pdf")
Creator: Prawn Producer: Prawn Tagged: no Form: none Pages: 1 Encrypted: no Page size: 841.89 x 1190.55 pts Page rot: 0 File size: 842 bytes Optimized: no PDF version: 1.3