On linux there is a set of utilities comes with xpdf program. It should be part of the default package installation, if not, you just apt-get or yum it.
On windows you can go to the gunwin32 page, I just download the zip just so i would not have to remove it with a uninstaller.
I don't really need the layout information, on it. so I just use pdftotext.
program_location/pdftotext.exe -layout pdf_file.pdf
On linux, just
pdftotext -layout pdf_file.pdf
The -layout would maintain the layout of the text as from the pdf. Otherwise, the positioning for certain text will be inconsistent.