Convert PDF files to plain text format. More information: https://www.xpdfreader.com/pdftotext-man.html.
filename.pdf
to plain text and print it to stdout
:pdftotext filename.pdf -
filename.pdf
to plain text and save it as filename.txt
:pdftotext filename.pdf
filename.pdf
to plain text and preserve the layout:pdftotext -layout filename.pdf
input.pdf
to plain text and save it as output.txt
:pdftotext input.pdf output.txt
input.pdf
to plain text and save them as output.txt
:pdftotext -f 2 -l 4 input.pdf output.txt