如何使用Perl提取Word文档中的数据? [英] How can I extract data in a Word document using Perl?

查看:87
本文介绍了如何使用Perl提取Word文档中的数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用Perl从Word文档中提取数据?

How to extract the data from a word doc using Perl?

推荐答案

如果您不在Windows上,我认为最好的方法可能是先将其转换.

If you are not on Windows, I think the best route might be to convert it first.

如果您不使用Windows,并且无权访问 Win32 :: OLE ,则可以使用 OpenOffice进行转换文件.

If you are not using Windows and don't have access to Win32::OLE, you can use OpenOffice to convert the documents.

您可以将链接中的脚本包装到您的Perl程序中.尽管该链接以PDF开头(如果您继续阅读),则可以将其转换为文本.另请参见此stackoverflow帖子,内容涉及转换doc和docx文件.

You could wrap up the script in the link into your Perl program. Although the link starts with PDF if you read on it can convert it to text. Also see this stackoverflow post about converting doc and docx files.

这篇关于如何使用Perl提取Word文档中的数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆