【问题标题】:Remove password from Excel spreadsheet - Password Known从 Excel 电子表格中删除密码 - 密码已知
【发布时间】:2013-02-09 01:36:27
【问题描述】:

我们有一堆由 Perl 脚本处理的 Excel 电子表格。这些电子表格受密码保护(我们知道密码)。我们需要的是能够使用 Perl 或 PHP 从电子表格中删除密码并保存解密的文件。该脚本将在 BSD 服务器上运行。

【问题讨论】:

  • 不幸的是文件是 .xls

标签: php perl excel passwords


【解决方案1】:

对不起,在 linux 上不行:Reading password protected XLSX on linux (and windows) with Perl

(您可以使用 OpenOffice/Libreoffice 打开/转换它,但这不是一个简单的方法)

如果你在 Windows 上运行它,你也许可以用 win32::ole http://www.perlmonks.org/?node_id=319647 来做到这一点

更详细的代码示例:http://bytes.com/topic/perl/answers/746842-opening-password-protected-excel-file-using-win32-ole-perl

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-07-23
    • 1970-01-01
    • 2018-06-11
    • 2013-07-10
    • 2018-05-27
    相关资源
    最近更新 更多