Friday, 31 March 2023

How to convert PDF file to TXT file on CentOS 7 ?

yum install poppler-utils

pdftotext -layout test.pdf - | awk '!NF{print "\n"}END{print "\n"}1' ORS=" " | tr -s ' ' > test.txt

No comments:

Post a Comment

Note: only a member of this blog may post a comment.