Advertisement
xopsuei

pdf to txt 2

May 24th, 2014
467
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.16 KB | None | 0 0
  1. #!/bin/bash
  2. dir=$(pwd)
  3. for f in *.pdf
  4. do
  5.     echo "converting "$f
  6.     convert -density 600 $f /tmp/$f.tif
  7.     tesseract /tmp/$f.tif $dir/$f.txt
  8.     rm /tmp/$f
  9. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement