Advertisement
xopsuei

pdf to txt

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