Poppler is a PDF rendering library based on the xpdf-3.0 code base. It comes with several utilities, including pdftotext and pdftohtml.