lib/docsplit/transparent_pdfs.rb in docsplit-0.7.0 vs lib/docsplit/transparent_pdfs.rb in docsplit-0.7.1
- old
+ new
@@ -10,10 +10,10 @@
[docs].flatten.map do |doc|
ext = File.extname(doc)
if ext.downcase == '.pdf'
doc
else
- tempdir = Dir.mktmpdir
+ tempdir = File.join(Dir.tmpdir, 'docsplit')
extract_pdf([doc], {:output => tempdir})
File.join(tempdir, File.basename(doc, ext) + '.pdf')
end
end
end
\ No newline at end of file