Skip to content
This repository was archived by the owner on Jan 2, 2019. It is now read-only.
This repository was archived by the owner on Jan 2, 2019. It is now read-only.

Setting workbook password does not seem to work at all #442

@adonix

Description

@adonix

I've searched for a while and it looks like the correct way of password protecting a file is to do this:

    $phpExcelObject->getSecurity()->setLockWindows(true);
    $phpExcelObject->getSecurity()->setLockStructure(true);
    $phpExcelObject->getSecurity()->setWorkbookPassword("PHPExcel");

However, this does not seem to work at all because when opening the file, it does not prompt for a password at all. Am I missing something here? The file gets saved and sent as a StreamResponse to the user downloading the file (using Excel2007 writer). I'm also using LibreOffice to open the file.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions