Wicked_pdf docs show that I can use the following to change the page size:
render :pdf => 'file_name', :page_size => "b10"
However, this is limited to "named" page sizes such as "A4" or "Letter". I would like to use wkhtmltopdf's page_height
and page_width
properties, but the following appears to have no effect in wicked_pdf:
render :pdf => 'file_name', :page_height => 1, :page_width => 1
Is there a way to declare custom PDF page size in wicked_pdf?
wkhtmltopdf-binary (0.9.9.3)
andwicked_pdf (0.11.0)
and:page_height
and:page_width
does not work :( – Tirade