Click here to Skip to main content
15,890,741 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
[2023-04-27 15:46:52] production.ERROR: Class 'Smalot\PdfParser\Parser' not found {"userId":67,"exception":"[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Class 'Smalot\PdfParser\Parser' not found at /var/www/vhosts/changenaukri.com/httpdocs/app/Http/Controllers/ExtractController.php:45) [stacktrace] #0 [internal function]: App\Http\Controllers\ExtractController->add_file()

after parsing the pdf i am getting this error again and again.


What I have tried:

$parser = new \Smalot\PdfParser\Parser();
           $pdf = $parser->parseFile(public_path('upload/profile/files/'.$images));
           $texts = $pdf->getText();
Posted
Updated 30-Apr-23 7:48am
Comments
OriginalGriff 28-Apr-23 9:16am    
And?
What have you tried?
Where are you stuck?
What help do you need?

This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind - we only get exactly what you type to work with - we get no other context for your project.
Imagine this: you go for a drive in the country, but you have a problem with the car. You call the garage, say "it broke" and turn off your phone. How long will you be waiting before the garage arrives with the right bits and tools to fix the car given they don't know what make or model it is, who you are, what happened when it all went wrong, or even where you are?

That's what you've done here. So stop typing as little as possible and try explaining things to people who have no way to access your project!

We have no idea where this class is, or what it comes from. And without access to your system(s) to find out we can't do anything to help you!

Use the "Improve question" widget to edit your question and provide better information.
Aniket Kannaujiya 29-Apr-23 6:26am    
i am trying to parse pdf and extract the text . for the parsing pdf i am using smalot/pdfparser and i was include the smalot/pdfparser library .after including the library it is showing that smalot/pdfparser not found
OriginalGriff 29-Apr-23 7:23am    
Yes, we get that.
But what have you done to diagnose it? We have no access to your system(s) so we can't look and see!
Aniket Kannaujiya 8-May-23 0:49am    
can you connect with me on google meet or any other way to help me.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900