Copying a table out of a PDF viewer tends to give a jumble. pdftotext, from the Poppler utilities, usually does better.
pdftotext -layout invoice.pdf invoice.txt
-layout tries to keep the text where it sits on the page, so columns of a statement or a price list stay lined up. Leave it off for running prose, where reading order is what you want.
Use a dash as the output name to send the text straight to the terminal, which makes the PDF searchable from a pipe:
pdftotext -layout invoice.pdf - | grep -i total
For a long document you can limit the pages with -f for the first and -l for the last:
pdftotext -f 3 -l 5 manual.pdf -
I’d reach for this when I want to find one amount in a pile of invoices without opening each one.
The big limit: it reads text that is already in the file. A scanned page is just a picture, so you’ll get nothing or a few stray characters, and you would need OCR for that. Complex layouts can still come out scrambled, so check numbers against the original before you rely on them. On Debian and Ubuntu the package is poppler-utils.
Further reading: pdftotext man page