从Excel电子表格中删除密码 - 密码已知

时间:2013-02-08 16:42:57

标签: php perl excel passwords

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

1 个答案:

答案 0 :(得分:2)

抱歉,在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

相关问题