- Based on https://github.com/nextcloud/server/pull/32482 - Get attributes of the file opened - Set the the appropriate WOPI checkFileInfo fields from https://sdk.collaboraonline.com/docs/advanced_integration.html#checkfileinfo-extended-response-properties - DisablePrint - DisableExport - HideExportOption - HidePrintOption