Method: Pdfcrowd::ImageToImageClient#setMarginLeft
- Defined in:
- lib/pdfcrowd.rb
#setMarginLeft(left) ⇒ Object
3020 3021 3022 3023 3024 3025 3026 3027 |
# File 'lib/pdfcrowd.rb', line 3020 def setMarginLeft(left) unless /(?i)^0$|^[0-9]*\.?[0-9]+(pt|px|mm|cm|in)$/.match(left) raise Error.new(Pdfcrowd.(left, "setMarginLeft", "image-to-image", "The value must be specified in inches 'in', millimeters 'mm', centimeters 'cm', pixels 'px', or points 'pt'.", "set_margin_left"), 470); end @fields['margin_left'] = left self end |