setMarkAsFinal

setMarkAsFinal

BASIC / ADVANCED / PREMIUM

Marks the Excel spreadsheet as final.

Description
public setMarkAsFinal ()

Sets the spreadsheet as final by blocking the edition capabilities.

This can be easily revoked by the final user through the standard Excel interface so it should only be used as an indication that the spreadsheet is considered "final". If you really want to protect the spreadsheet you should use the methods available in the Cryptophpxlsx and Digital Signature features included in Premium licenses.

Code samples

Example #1

The resulting XLSX looks like:

Release notes
  • phpxlsx 1.0: new method.