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.

  • No it didn't work and showing error syntax error near pdftotext.. – kalpesh Aug 20 '18 at 14:14
0
for file in *.pdf; do
    pdftotext -layout "$file"
done

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.