Make document readonly

Hello,

i want to make the document readonly when clicking on button.

There is no command for doing this with postmessage.

And checkfileinfo_override seems working only for DownloadAsPostMessage.

Any ideas ?