I use https://github.com/PHPOffice/PhpSpreadsheet I need to add digital signature to xls document to verify authenticity of document. Is it possible with this or maybe other PHP library? Can anyone point me a direction how to do this?
Digital signatures are not supported in PhpSpreadsheet.
But in case you want macros signed with a certificate, then those are supported in PhpSpreadsheet Xlsx writer. But that feature is not documented. To understand how to use, refer to the commit that introduced it . It should be something like:
$spreadsheet->setMacrosCertificate($certificate);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.