Method: PDFextract#get_file_from_url
- Defined in:
- lib/pdf_extract.rb
#get_file_from_url(file_url) ⇒ Object
110 111 112 113 114 115 116 |
# File 'lib/pdf_extract.rb', line 110 def get_file_from_url(file_url) file_data = open(file_url).read temp_file = open(@base_dir+"/temp-file.pdf","w") temp_file.write file_data temp_file.close return temp_file.path end |