PDF Extractor to Text?

What is the best way to extract PDF file to text using PHP?

Some PDF files will contain design and texts.

ImageMagick is there for you.