D
D
desperate_one2019-09-05 14:23:43
PHP
desperate_one, 2019-09-05 14:23:43

Count the number of words in a file in php?

Greetings! The task is to make a feature that will count the number of words in files: docx, doc, xls, xlsx, pdf and a few other unimportant formats. So, if I found a solution for the first 4, then with pdf, as it turned out, the trouble was enough. How will it be possible to get only the text using php to count the number of words in a pdf file? You need to get just the text only from the pdf file.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GDim, 2019-09-09
@GDim

There is a working solution for PDF text recognition https://github.com/spatie/pdf-to-text

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question