PDF Options - afast/map_print GitHub Wiki
PDF Options, passed directly on to Prawn generator.
For more info see here.
:page_size
– One of thePDF::Core::PageGeometry
sizes, e.g. LETTER, A4, LEGAL, etc. Defaults to LETTER:page_layout
– Either:portrait
or:landscape
. Defaults to:portrait
:margin
– Sets the margin on all sides in points [0.5 inch]:left_margin
– Sets the left margin in points [0.5 inch]:right_margin
– Sets the right margin in points [0.5 inch]:top_margin
– Sets the top margin in points [0.5 inch]:bottom_margin
– Sets the bottom margin in points [0.5 inch]
:skip_page_creation
– Creates a document without starting the first page [false]:compress
– Compresses content streams before rendering them [false]:background
– An image path to be used as background on all pages [nil]:background_scale
– Backgound image scale [1] [nil]:info
– Generic hash allowing for custom metadata properties [nil]
Example
pdf_options: {
page_size: 'A4',
page_layout: :portrait
}