PHP Classes

not working for pdf

Recommend this page to a friend!

      PHP Classes blog  >  How to make a PHP PDF...  >  All threads  >  not working for pdf  >  (Un) Subscribe thread alerts  
Subject:not working for pdf
Summary:this class nor working for pdf file
Messages:5
Author:asmara
Date:2015-11-10 13:50:45
Update:2018-03-31 14:36:36
 

  1. not working for pdf   Reply   Report abuse  
Picture of asmara asmara - 2015-11-10 19:36:59
Hello

I have test this using docx and pdf. this class work when i use docx as input but not for pdf file.

When i test it using pdf file i just have output ==> string(0) ""

That is a bug?

Best Regards

  2. Re: not working for pdf   Reply   Report abuse  
Picture of Jeremy Leach Jeremy Leach - 2015-11-12 17:04:07 - In reply to message 1 from asmara
Is the PDF file made of images of pages? Can you select the text in the PDF and then paste it into a text document? If not then the Utility Class would have to be capable of text recognition, and this is not that kind of library. It extracts text from binary format documents, which normally a pdf contains when constructed properly, but often times they appear as text but are actually images of the text.

  3. Re: not working for pdf   Reply   Report abuse  
Picture of Swarnajith Fernando Swarnajith Fernando - 2018-03-31 14:36:36 - In reply to message 1 from asmara
I have used this and it only works for some pdf's. Definitely not the ones which have images in it. And some other documents which only have text also are not read.

  4. Re: not working for pdf   Reply   Report abuse  
Picture of Swarnajith Fernando Swarnajith Fernando - 2016-10-14 01:29:49 - In reply to message 2 from Jeremy Leach
can't you ignore the images and extract whatever the text in it?

  5. Re: not working for pdf   Reply   Report abuse  
Picture of Feliciano Rodrigues Ferreira Feliciano Rodrigues Ferreira - 2018-03-31 14:34:12 - In reply to message 1 from asmara
Good morning, with me it does not work with any of the 3 types: doc, docx and pdf. When I put the directory of the file, without pulling the variable, it also gives nonexistent file. I do not know what else to do. Can someone help me?