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
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