lib/docsplit/transparent_pdfs.rb in docsplit-0.6.4 vs lib/docsplit/transparent_pdfs.rb in docsplit-0.7.0

- old
+ new

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