How to make annotations view-only

How do we allow only to view annotation, but not change/delete or add any annotation?
The context menu should also be disabled.

You can set them as readonly, you can refer to this guide for more info: https://pdfjs.express/documentation/annotation/annotation-permissions.