The file 'document.properties' is enhanced by the property 'com.openexchange.office.maxDocumentFileSize'. It allows to limit the maximum document file size that can be loaded. Document larger than the configured value will result in an error message (document size limits are exceeded).
The system will also check that the current JVM memory consumption allows to load a document. The file size value is interpreted as MB. The default value is 100 (MB).