Extract text from a PDF
Try it!
How this works, including source code!
FileFormat.Info has more file conversion utilities and documentation on different file formats.