你知道有什么库可以让我提取一个A类型的pdf格式的文本,然后用PHP阅读它吗?
我试过很多库,但没有一个能够读懂我需要帮助的内容
发布于 2019-08-06 04:48:40
您可以尝试github中提供的开源库PDF Parser
会是这样的。但请查看文档以了解更多详细信息
<?php
// lot of lines
// Parse pdf file and build necessary objects.
$parser = new \Smalot\PdfParser\Parser();
$pdf = $parser->parseFile('document.pdf');
$text = $pdf->getText();
echo $text;
?>https://stackoverflow.com/questions/57365073
复制相似问题