Reputation: 1480
I need to be able to read the text of many different file types in PHP, including .doc, .docx, excel, and PDF files. I found a few methods online that require installing multiple packages but I was wondering if there was a better way to do this?
Upvotes: 2
Views: 9232
Reputation: 147
maybe this URL can help you:
where have: -PhPWord, -PhpSpreadsheet(instead of PhPExcel) ...
Upvotes: 0
Reputation: 28824
office 2007 is very easy, just need to unzip them and read the xml files, older versions of office and pdf will need extra packages.
Upvotes: 1
Reputation: 18139
No matter which way you swing it, there is no way to kill all these birds with one stone.
Word Thread:
Reading/Writing a MS Word file in PHP
Excel Thread:
PDF Thread:
Upvotes: 7
Reputation: 23016
I don't think there is native support for reading documents with PHP. Installing these packages is the only choice. :-)
Upvotes: 0