Hi David, did you solve your problem? The same thing is happening to me, but only with files whose extensions are .py (Python programs). If my students paste the content of their program in a .docx file, then I can see it and make any type of annotation and later it creates a .pdf with all those annotations. My system has Moodle 3.1.3 and CentOS 7
Best Regards