-
Notifications
You must be signed in to change notification settings - Fork 4
PDF Options
Andreas Fast edited this page Feb 12, 2016
·
6 revisions
For more info see here.
-
:page_size– One of thePDF::Core::PageGeometrysizes, e.g. LETTER, A4, LEGAL, etc. Defaults to LETTER -
:page_layout– Either:portraitor: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]
pdf_options: {
page_size: 'A4',
page_layout: :portrait
}