There is actually a much easier way to embed a PDF reader in a Moodle resource or activity. The explanations how to do this are given in detail in the following video, currently only available in French but which will be translated soon, I hope, into English.
Quiz
Embedded PDF viewer
This discussion has been locked so you can no longer reply to it.