如何使用perl将单词转换为单词?

时间:2014-04-17 09:30:44

标签: perl ms-word

我是perl脚本的新手....我需要将doc转换为doc,因为我将在原始文档中进行文本更改,以便如何使用perl脚本启动此转换,我尝试转换为html并更改该文本和html文件转换为doc ...但我不知道如何启动它以及如何使用perl进行转换?

input :

Orginal.doc

sample bold text

output.doc

sample italic text

如何转换这种情况? ....使用perl脚本..

我认为其他想法: doc to html and html to doc

2 个答案:

答案 0 :(得分:1)

我没有给你明确答案......

但它可能对你有用...... 访问此Cpan页面......

Win32::Word::Writer

答案 1 :(得分:0)

只需使用Win32::OLE直接修改。

以下是加载现有word文档并在更改后将其保存到新文件的有用示例:A Solution to the edit Word documents with Perl problem。顺便说一下,人们可以通过谷歌搜索来找到它:editing a word doc using perl