一:拓展按照
composer require smalot/pdfparser
二:参考地址
https://github.com/smalot/pdfparser
https://packagist.org/packages/smalot/pdfparser
三:PDF内容解析实例
$parser = new \Smalot\PdfParser\Parser();
$pdf = $parser->parseFile('pdf文件地址');
$text = $pdf->getText();
echo $text;