Method: Pdfcrowd::HtmlToPdfClient#setContentAreaY

Defined in:
lib/pdfcrowd.rb

#setContentAreaY(y) ⇒ Object



1928
1929
1930
1931
1932
1933
1934
1935
# File 'lib/pdfcrowd.rb', line 1928

def setContentAreaY(y)
    unless /(?i)^0$|^\-?[0-9]*\.?[0-9]+(pt|px|mm|cm|in)$/.match(y)
        raise Error.new(Pdfcrowd.create_invalid_value_message(y, "setContentAreaY", "html-to-pdf", "The value must be specified in inches 'in', millimeters 'mm', centimeters 'cm', pixels 'px', or points 'pt'. It may contain a negative value.", "set_content_area_y"), 470);
    end
    
    @fields['content_area_y'] = y
    self
end