Closed bhaktvanti closed 3 months ago
When using alt_autoload.php-dist
there is no need to manually include Parser.php
too, because the autoload-file already includes all required PDFParser classes.
Remove the following line in your code and it should work:
require dirname(__FILE__) . "/libs/pdfparser-master/src/Smalot/PdfParser/Parser.php";
Reopen if the problem persists.
Description:
I included the file alt_autoload.php-dist without composer. It throws below error
Fatal error: Cannot declare class Smalot\PdfParser\Parser, because the name is already in use in \libs\pdfparser-master\src\Smalot\PdfParser\Parser.php on line 49
PDF input
Expected output & actual output
Code