-
Notifications
You must be signed in to change notification settings - Fork 574
Open
Labels
Description
Hello, Iwant to extract this pdf, but the result is empty.
https://www.mediafire.com/file/azb7yddqo2ry55j/123.pdf/file
this is my code
$parser = new \Smalot\PdfParser\Parser(); // Parse pdf file using Parser library
$pdf = $parser->parseFile($file);
$metaData = $pdf->getDetails();
print_r($metaData);
$pages = $pdf->getPages();
foreach ($pages as $page) {
$text = $page->getText();
echo "<div>".$text."</div>";
}
echo $file;
the result just
Array
(
[Producer] => cairo 1.17.4 (https://cairographics.org
[Pages] => 1
)
<div></div>D:\web\D\public\pdf_po/123.pdf
Reactions are currently unavailable