Intelligence is simply talking to many people

Convert PDF to TXT with pdftotext (poppler-utils)

  1. sudo apt install poppler-utils
  2. open Terminal in folder
  3. pdftotext -layout pdfname.pdf documenttocreate.txt (where -layout tries to preserve the formatting of the pdf, it is an optional command)
  4. pdftotext -layout -f 1 -l 20 pdfname.pdf documenttocreate.txt (where f and l designate the first and last pages, we create a txt file out of pages 1-20 of the pdf)

Pdf To Text doesn't support batch conversion. You have to do it using “Bash for loop” to convert a whole folder full of pdfs.

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

To convert all pdfs in that folder to files (I haven't tested this)

Comments: 0

Interested to discuss? Leave a comment.


Your email will not be published nor shared with anyone. In your text you can use markdown for marking up *italic*, links <> and other elements. These comments are moderated and published manually as soon as possible.