JLZenor
JLZenor

Reputation: 1480

How do I read Word, Excell, and PDF docs in PHP?

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

Answers (4)

Ion Stefanache
Ion Stefanache

Reputation: 147

maybe this URL can help you:

https://github.com/PHPOffice

where have: -PhPWord, -PhpSpreadsheet(instead of PhPExcel) ...

Upvotes: 0

Paul Creasey
Paul Creasey

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

Brandon Frohbieter
Brandon Frohbieter

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:

Reading an Excel file in PHP

PDF Thread:

Read pdf files with php

Upvotes: 7

Shoban
Shoban

Reputation: 23016

I don't think there is native support for reading documents with PHP. Installing these packages is the only choice. :-)

Upvotes: 0

Related Questions