Method: Pdfcrowd::ImageToPdfClient#setPosition
- Defined in:
- lib/pdfcrowd.rb
#setPosition(position) ⇒ Object
3843 3844 3845 3846 3847 3848 3849 3850 |
# File 'lib/pdfcrowd.rb', line 3843 def setPosition(position) unless /(?i)^(center|top|bottom|left|right|top-left|top-right|bottom-left|bottom-right)$/.match(position) raise Error.new(Pdfcrowd.(position, "setPosition", "image-to-pdf", "Allowed values are center, top, bottom, left, right, top-left, top-right, bottom-left, bottom-right.", "set_position"), 470); end @fields['position'] = position self end |