Method: Pdfcrowd::HtmlToImageClient#convertStringToStream

Defined in:
lib/pdfcrowd.rb

#convertStringToStream(text, out_stream) ⇒ Object



2193
2194
2195
2196
2197
2198
2199
2200
# File 'lib/pdfcrowd.rb', line 2193

def convertStringToStream(text, out_stream)
    if (!(!text.nil? && !text.empty?))
        raise Error.new(Pdfcrowd.create_invalid_value_message(text, "convertStringToStream::text", "html-to-image", "The string must not be empty.", "convert_string_to_stream"), 470);
    end
    
    @fields['text'] = text
    @helper.post(@fields, @files, @raw_data, out_stream)
end