【问题标题】:How to convert word to word using perl?如何使用perl将单词转换为单词?
【发布时间】:2014-04-18 05:57:18
【问题描述】:

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

input :

Orginal.doc

sample bold text

output.doc

sample italic text

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

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

【问题讨论】:

  • 当您说“doc”时,您是指 Microsoft word 文档吗?
  • 很抱歉发生...是的,我的意思是 Microsoft Word 文档...
  • 我不知道,但你可以试试这个作为起点:wellho.net/solutions/…
  • 是的,该站点用于编写word文档,我想更改文本 orginal.doc 文件并保存 output.doc....

标签: perl ms-word


【解决方案1】:

我没有给你明确的答案……

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

Win32::Word::Writer

【讨论】:

    【解决方案2】:

    直接使用Win32::OLE编辑即可。

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-08-08
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多