Your library to extract the text from my PDF produced this error. What do i do? #69
Unanswered
richardsonoge
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I tried to extract the text from my PDF with your library "https://github.com/dragomirt/pdf-to-text", it produced this error:
[Tue Aug 01 17:44:18.360166 2023] [php:error] [pid 101956] [client ::1:60540] PHP Fatal error: Uncaught Spatie\\PdfToText\\Exceptions\\CouldNotDecryptFile: The command "'/usr/bin/qpdf' '--decrypt' 'ar-11.pdf' '/tmp/temp294322108.pdf'" failed.\n\nExit Code: 1(General error)\n\nWorking directory: /opt/lampp/htdocs\n\nOutput:\n================\n\n\nError Output:\n================\n/usr/bin/qpdf: /opt/lampp/lib/libstdc++.so.6: version
GLIBCXX_3.4.21' not found (required by /usr/bin/qpdf)\n/usr/bin/qpdf: /opt/lampp/lib/libstdc++.so.6: versionGLIBCXX_3.4.20' not found (required by /lib/x86_64-linux-gnu/libqpdf.so.29)\n/usr/bin/qpdf: /opt/lampp/lib/libstdc++.so.6: version
CXXABI_1.3.8' not found (required by /lib/x86_64-linux-gnu/libqpdf.so.29)\n/usr/bin/qpdf: /opt/lampp/lib/libstdc++.so.6: versionGLIBCXX_3.4.26' not found (required by /lib/x86_64-linux-gnu/libqpdf.so.29)\n/usr/bin/qpdf: /opt/lampp/lib/libstdc++.so.6: version
CXXABI_1.3.9' not found (required by /lib/x86_64-linux-gnu/libqpdf.so.29)\n/usr/bin/qpdf: /opt/lampp/lib/libstdc++.so.6: versionGLIBCXX_3.4.29' not found (required by /lib/x86_64-linux-gnu/libqpdf.so.29)\n/usr/bin/qpdf: /opt/lampp/lib/libstdc++.so.6: version
GLIBCXX_3.4.21' not found (required by /lib/x86_64-linux-gnu/libqpdf.so.29)\n in /opt/lampp/htdocs/vendor/dragomirt/pdf-to-text/src/Pdf.php:127\nStack trace:\n#0 /opt/lampp/htdocs/index.php(12): Spatie\PdfToText\Pdf->decrypt()\n#1 {main}\n thrown in /opt/lampp/htdocs/vendor/dragomirt/pdf-to-text/src/Pdf.php on line 127`Here the url of the image : Image to see the bug in the library
Can you please help me solve this error?
Beta Was this translation helpful? Give feedback.
All reactions