Method: Pdfcrowd::HtmlToPdfClient#setContentViewportWidth
- Defined in:
- lib/pdfcrowd.rb
#setContentViewportWidth(width) ⇒ Object
1048 1049 1050 1051 1052 1053 1054 1055 |
# File 'lib/pdfcrowd.rb', line 1048 def setContentViewportWidth(width) unless /(?i)^(balanced|small|medium|large|extra-large|[0-9]+(px)?)$/.match(width) raise Error.new(Pdfcrowd.(width, "setContentViewportWidth", "html-to-pdf", "The value must be 'balanced', 'small', 'medium', 'large', 'extra-large', or a number in the range 96-65000px.", "set_content_viewport_width"), 470); end @fields['content_viewport_width'] = width self end |