"message": "The command \"'/usr/bin/pdftotext' '/home/domain/public_html/public/cvs/test.pdf' '-'\" failed.\n\nExit Code: 127(Command not found)\n\nWorking directory: /home/domain/public_html\n\nOutput:\n================\n\n\nError Output:\n================\nsh: /usr/bin/pdftotext: No such file or directory\n", #62
Replies: 7 comments 2 replies
-
Pass the On macOS, if you installed using use Spatie\PdfToText\Pdf;
$binPath = '/usr/local/bin/pdftotext';
$text = (new Pdf($binPath))
->setPdf('sample.pdf')
// ->setTimeout(60) 60 is the default
->text(); |
Beta Was this translation helpful? Give feedback.
-
This solution doesn't work for me... here is my code:
Here is the error:
It doesnt seem to respect the new path. Any idea why not, or what I could try? |
Beta Was this translation helpful? Give feedback.
-
alguém resolveu? |
Beta Was this translation helpful? Give feedback.
-
In macOS the binPath is '/opt/homebrew/bin/pdftotext' `$binPath = '/opt/homebrew/bin/pdftotext'; return $text;` You can verify if the binary is installed on your system by issuing this command: which pdftotext |
Beta Was this translation helpful? Give feedback.
-
Check if you have already followed these steps: https://github.com/spatie/pdf-to-text#requirements |
Beta Was this translation helpful? Give feedback.
-
I have the same problem , and i am using Docker , might this be the cause to it , and if so , how can i change docker-compose.yml to solve this .
or i think it could be that i am on a windows enviroment running my docker , god knows |
Beta Was this translation helpful? Give feedback.
-
RUN apt-get update && apt-get install -y poppler-utils
<https://about.me/renatolucena?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api&utm_content=thumb>
Atenciosamente
Renato De Oliveira Lucena
about.me/renatolucena
<https://about.me/renatolucena?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api&utm_content=thumb>
|
Developer Laravel DevOps
<https://api.accredible.com/v1/frontend/credential_website_embed_image/badge/12911536>
Em ter., 16 de abr. de 2024 às 09:26, sultanos ***@***.***>
escreveu:
… For those that have a docker installation and is not running i solved this
by editing the Dockerfile
and adding this line
RUN apt-get update && apt-get install -y poppler-utils
—
Reply to this email directly, view it on GitHub
<#62 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJIRYUI5RK4P36QOMP5GTLLY5UKIPAVCNFSM6AAAAAAT7BU6U6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TCMRZGYZDM>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Could you help me with this?
Beta Was this translation helpful? Give feedback.
All reactions