duanbicheng3345 2016-09-07 11:24
浏览 19

我怎么能读取.doc文件并从php中获取特定的单词

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.

  • 写回答

1条回答 默认 最新

  • drutjkpsr67393592 2016-09-07 12:48
    关注

    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

    评论

报告相同问题?

悬赏问题

  • ¥15 linux驱动,linux应用,多线程
  • ¥20 我要一个分身加定位两个功能的安卓app
  • ¥15 基于FOC驱动器,如何实现卡丁车下坡无阻力的遛坡的效果
  • ¥15 IAR程序莫名变量多重定义
  • ¥15 (标签-UDP|关键词-client)
  • ¥15 关于库卡officelite无法与虚拟机通讯的问题
  • ¥15 目标检测项目无法读取视频
  • ¥15 GEO datasets中基因芯片数据仅仅提供了normalized signal如何进行差异分析
  • ¥100 求采集电商背景音乐的方法
  • ¥15 数学建模竞赛求指导帮助