parseFile('document.pdf'); $text = $pdf->getText(); echo $text; ?>