i have excel file downloaded from web and its protected.
if i open that file and disable protection PHPExcel_IOFactory::load can open it
but there is anyway to PHPExcel unprotect file itself?
because i want my php code to download it automatically and open it
but if i cant set file unprotected by PHPExcel i must download it
set disable protection and then give it to PHPExcel_IOFactory::load
and its bad
my code:
$inputFileName = './sampleData/ttt.xlsx';
echo 'Loading file ',pathinfo($inputFileName,PATHINFO_BASENAME),' using IOFactory to identify the format<br />';
$objPHPExcel = PHPExcel_IOFactory::load($inputFileName);
echo '<hr />';
$sheetData = $objPHPExcel->getActiveSheet()->toArray(null,true,true,true);
so PHPExcel have any function or class for unprotect file itsself? and sorry for my bad english