uploadconvert 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/uploadconvert.rb +6 -1
- metadata +1 -1
data/lib/uploadconvert.rb
CHANGED
@@ -60,7 +60,12 @@ class UploadConvert
|
|
60
60
|
begin
|
61
61
|
Docsplit.extract_text(@input, :ocr => false, :output => "public/uploads")
|
62
62
|
outfile = @input.split(".pdf")
|
63
|
-
|
63
|
+
if outfile[].include? "public/uploads/"
|
64
|
+
path = outfile[0]
|
65
|
+
else
|
66
|
+
path = "public/uploads/" + outfile[0]
|
67
|
+
end
|
68
|
+
|
64
69
|
text = File.read(path+".txt")
|
65
70
|
|
66
71
|
# Clean up text and delete file
|