Extract text from a pdf file

i am trying to extract the text content form a pdf file to count the words in that pdf files.but i couldn’t find a way can anyone give some suggestions to me to complete this.

http://stackoverflow.com/questions/1251956/is-there-a-pdf-parser-for-php

Convert PDF Files to Word Documents, HTML or Text Files