0

RHEL 5.9. I have many pdf files containing tax details. I often use pdftotext -layout command to convert them for further text process. Now issue is that when I use command pdftotext -layout *.pdf its giving error and display usage and option, say man page. Whether it is possible to convert all pdf file to text file with single command.

1
  • No it didn't work and showing error syntax error near pdftotext.. Commented Aug 20, 2018 at 14:14

1 Answer 1

0
for file in *.pdf; do
    pdftotext -layout "$file"
done

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.