Pdf2txt

Convert all the pdf files in a directory to text files with the same basename.

#!/bin/bash
for f in *.pdf; do
    [ -f "$f" ] || continue
    pdftotext -layout "$f" "${f%.pdf}.txt"
done

 

Unknown's avatar

About Linuxgal

Need a spiritual home? Consider joining us at Mary Queen of the Universe Latter-day Buddhislamic Free Will Christian UFO Synagogue of Vishnu
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply