Forum


Replies: 5   Views: 5086
Is this possible to extract data from existing ms word doc?
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by epezhman  · 26-12-2010 - 15:17

I found phpdocx while I was looking for a way to extract word doc, but it seems it only works for generating new word docs. is this possible to read an existed word doc by PHPDocx? thanks

Posted by andrwsv  · 11-04-2013 - 12:12

you have solution to this problem?
I have the same problem and I have pay pro+ version, and I dont resolved....
I need helpme
thanks

Posted by admin  · 11-04-2013 - 12:12

Hello,

You can use Docx2Text class to extract content of a DOCX.

Regards.

Posted by andrwsv  · 11-04-2013 - 12:12

yes but dont read .doc

I try :

$archivo = 'document.doc';
$options = array('paragraph' => true, 'list' => true,'table' => true, 'footnote' => false, 'endnote' => false, 'chart' => 0);
$docx->docx2txt($archivo, 'document_new.docx', $options);

how I do it for read .doc

Posted by admin  · 11-04-2013 - 12:12

Hello,

Phpdocx doesn't read or transform DOC to DOCX.
If you want to do that transformation you should use a tool like OdfConverter, included in phpdocx pro + and phpdocx corporate.

Regards.