Re: Reading a Word document from PHP

From: Date: Mon, 22 Sep 2008 20:59:53 +0000
Subject: Re: Reading a Word document from PHP
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-280732@lists.php.net to get a copy of this message
On Mon, Sep 22, 2008 at 4:58 PM, Ashley Sheridan <ash@ashleysheridan.co.uk>wrote: > On Mon, 2008-09-22 at 16:47 -0400, Bastien Koert wrote: > > > > > > On Mon, Sep 22, 2008 at 3:56 PM, Ashley Sheridan > > <ash@ashleysheridan.co.uk> wrote: > > Hi All, > > > > I recently asked a question regarding reading a PDF with PHP. > > I've tried > > Zend_pdf, but all this is able to give me is the number of > > pages in a > > PDF, and cannot extract the text from the PDF files I have. I > > thought > > I'd try a different method, and try to extract the text > > straight from > > the Word document which is used to generate the PDF. Does > > anyone have > > any experience with this sort of thing, or enough to suggest a > > library > > which is capable of this? > > > > > > Ash > > www.ashleysheridan.co.uk > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: > > http://www.php.net/unsub.php > > > > > > > > This may help > > > > ~ ósÎâÓL > > 3šMÒhttp://drewd.com/2007/01/25/reading-from-a-word-document-with-com-in-php > > > > http://www.phpclasses.org/browse/package/388.html > > > > > > http://www.developertutorials.com/blog/php/extracting-text-from-word-documents-via-php-and-com-81/ > > > > > > -- > > > > Bastien > > > > Cat, the other other white meat > > > Unfortunately all of those use COM, which is only available on > Windows... I'm guessing this isn't possible on a proper OS? > > > Ash > www.ashleysheridan.co.uk > > Sadly, no...the closest you could come to, would be to try and see if you can manipulate OpenOffice via exec or something like that to read the document and do what you need to -- Bastien Cat, the other other white meat

« previous php.general (#280732) next »