XSSFWorkbook.lockStructure() not working when opening generated XLSX file with LibreOffice I’m creating a protected XLSX file like this: