PHPExcel读取密码表格
PHPExcel没有这个功能,需要用到其他的工具解密Excel,再用Excel去读取。
require_once('PHPDecryptXLSXWithPassword.php');
$encryptedFilePath = 'hello world.xlsx';
$password = 'mypassword'; // password to "open" the file
$decryptedFilePath = 'temp_path_to_decrypted_file.xlsx';
decrypt($encryptedFilePath, $password, $decryptedFilePath);
//再用PHPExcel去读取解密之后的从这里下载PHPDecryptXLSXWithPassword项目https://github.com/jaydadhania08/PHPDecryptXLSXWithPassword
若文章对您有帮助,帮忙点个赞!

(微信扫码即可登录,无需注册)