5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
|
# File 'lib/pdfcrowd.rb', line 5164
def convertRawDataToFile(data, file_path)
if (!(!file_path.nil? && !file_path.empty?))
raise Error.new(Pdfcrowd.create_invalid_value_message(file_path, "convertRawDataToFile::file_path", "pdf-to-image", "The string must not be empty.", "convert_raw_data_to_file"), 470);
end
output_file = open(file_path, "wb")
begin
convertRawDataToStream(data, output_file)
output_file.close()
rescue Error => why
output_file.close()
FileUtils.rm(file_path)
raise
end
end
|