-1

I want to read a doc file and get some result from it.

for example: If I have a file - file.doc

and it has something like

Resume

Name: john carter

Address: USA

I am working as a php developer

Then I want something like:

array(
'name' => john carter
'Address' => USA 
)

and also it reject additional info from it.

is it possible?

I have tried phpoffice but I can't get anything related my need.

We can get whole file data easily but I can't recognize whatever I want.

I need is similar like abbyy gives for image to text.

Please anyone help me.

Community
  • 1
  • 1
Dharmesh patel
  • 654
  • 1
  • 12
  • 23

1 Answers1

1

PHP docx reader: Convert MS Word Docx files to text This class can convert MS Word Docx files to text.

It can extract the files from compressed Microsoft Word file in docx format.

The class can parse the document XML file and extract the text that it contains.

Refreance from question : https://stackoverflow.com/a/19503654/5212418

Community
  • 1
  • 1
Vasim Shaikh
  • 4,485
  • 2
  • 23
  • 52
  • You can find it here : http://www.phpclasses.org/package/7934-PHP-Convert-MS-Word-Docx-files-to-text.html – Vasim Shaikh Sep 07 '16 at 12:49
  • thanks for answer... but not helpful to me as it gives full text instead of separated data. so not upvoted. – Dharmesh patel Sep 07 '16 at 13:41
  • ok can you please tell me what are you doing.Its better you convert doc to text and then serach with logic – Vasim Shaikh Sep 08 '16 at 06:31
  • You will check this : www.codeproject.com/Questions/411713/Convert-to-doc-file-to-plain-text – Vasim Shaikh Sep 08 '16 at 06:33
  • I have used this- http://stackoverflow.com/questions/19503653/how-to-extract-text-from-word-file-doc-docx-xlsx-pptx-php/19503654#19503654 and also you sugested that...I have to work a lot still. but ok thanks for your efforts – Dharmesh patel Sep 08 '16 at 09:20