Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facing an Error: Invalid object reference for $obj. #714

Open
mumer96 opened this issue May 22, 2024 · 3 comments
Open

Facing an Error: Invalid object reference for $obj. #714

mumer96 opened this issue May 22, 2024 · 3 comments
Labels

Comments

@mumer96
Copy link

mumer96 commented May 22, 2024

My Funciton:
public function uploadFile(Request $request) {
$file = $request->file;
$tempPath = $file->getRealPath();
$parser = new \Smalot\PdfParser\Parser();
$pdf = $parser->parseFile($tempPath);
$text = $pdf->getText();
}

Uploading image.png…

@k00ni
Copy link
Collaborator

k00ni commented May 27, 2024

Your example doesn't work, please provide a working example PDF or a test which triggers the error.

@k00ni
Copy link
Collaborator

k00ni commented Jun 5, 2024

@mumer96 does the linked PDF from #703 (comment) trigger the error too?

@k00ni k00ni removed the invalid label Jun 5, 2024
@martinemmert
Copy link

I encounter the same issue with the linked PDF from #703

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants