Method: Pdfcrowd::HtmlToPdfClient#setContentAreaWidth
- Defined in:
- lib/pdfcrowd.rb
#setContentAreaWidth(width) ⇒ Object
1938 1939 1940 1941 1942 1943 1944 1945 |
# File 'lib/pdfcrowd.rb', line 1938 def setContentAreaWidth(width) unless /(?i)^0$|^[0-9]*\.?[0-9]+(pt|px|mm|cm|in)$/.match(width) raise Error.new(Pdfcrowd.(width, "setContentAreaWidth", "html-to-pdf", "The value must be specified in inches 'in', millimeters 'mm', centimeters 'cm', pixels 'px', or points 'pt'.", "set_content_area_width"), 470); end @fields['content_area_width'] = width self end |