Can anyone help with extracting text from a page in a pdf?

```
<?php
$pdf = Zend_Pdf::load('example.pdf');
$page = $pdf->page[0];

```

I would assume a page method would exist but I could not find anything to let me extract the contents.

Example: $page->getContents(); $page->toString(); $page->extractText();

...Help!!!! This is driving me crazy!
['https://Stackoverflow.com/questions/2493585', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/272645/']
I agree with Andy that this does not appear to be supported. As an alternative, take a look at [Shaun Farrell's solution to extracting text from a PDF for use with Zend\_Search\_Lucene](http://www.kapustabrothers.com/2008/01/20/indexing-pdf-documents-with-zend_search_lucene/). He uses [XPDF](http://www.foolabs.com/xpdf/), which might also meet your needs.
From [the manual](http://framework.zend.com/manual/en/zend.pdf.html) it doesn't appear that this functionality is supported. Also, new text is written using the [drawText() function](http://framework.zend.com/manual/en/zend.pdf.usage.html), which appears to write images, not plain "decodable" text.