PHP Classes

Getting an error when run as a command line script

Recommend this page to a friend!

      PHP PDF to Text  >  All threads  >  Getting an error when run as a...  >  (Un) Subscribe thread alerts  
Subject:Getting an error when run as a...
Summary:Getting an error in pdftotext when run as a command line script
Messages:3
Author:Phil
Date:2020-09-29 08:29:06
 

  1. Getting an error when run as a...   Reply   Report abuse  
Picture of Phil Phil - 2020-09-29 08:29:06
Hope someone can help with this. I'm trying to use this pdftotext class in a script that runs without a graphical interface - just to get some text out of a pdf. I'm running it just as a bat file. or command line and getting the error;

"Use of undefined constant IMG_JPEG - assumed 'IMG_JPEG' "
and it's stopping my script.

Any ideas how I fix this.

Thanks in advance

  2. Re: Getting an error when run as a...   Reply   Report abuse  
Picture of Dean Outlaw Dean Outlaw - 2022-02-21 00:26:55 - In reply to message 1 from Phil
Yep, I'm getting the same error when trying the example scripts when running it on my local server and on my live server.
Any ideas would be helpful.

  3. Re: Getting an error when run as a...   Reply   Report abuse  
Picture of Francisco Hijar Francisco Hijar - 2023-02-16 17:49:14 - In reply to message 1 from Phil
Es un error de php 8, en php 7.4 es ok