Method: Pdfcrowd::HtmlToPdfClient#setPageLayout
- Defined in:
- lib/pdfcrowd.rb
#setPageLayout(layout) ⇒ Object
1676 1677 1678 1679 1680 1681 1682 1683 |
# File 'lib/pdfcrowd.rb', line 1676 def setPageLayout(layout) unless /(?i)^(single-page|one-column|two-column-left|two-column-right)$/.match(layout) raise Error.new(Pdfcrowd.(layout, "setPageLayout", "html-to-pdf", "Allowed values are single-page, one-column, two-column-left, two-column-right.", "set_page_layout"), 470); end @fields['page_layout'] = layout self end |