Me respondo y planteo otro interrogante al respecto. ¿Es probable que IPhone no acepte etiquetas <object>? Si es así, ¿cambiarla a <iframe> estaría mal?
lib/resourcelib.php
---------------------------
function resourcelib_embed_pdf ($ fullurl, $ title, $ clicktoopen) {
global $ CFG, $ PAGE;
$ code = <<< EOT
<div class = "resourcecontent resourcepdf">
<object id = "resourceobject" data = "$ fullurl" type = "application / pdf" width = "800" height = "600">
<param name = "src" value = "$ fullurl" />
$ clicktoopen
</object>
</ div>
EOT;
// the size is hardcoded in the boject obove intentionally because it is adjusted by the following function on-the-fly
$ PAGE-> requires-> js_init_call ('M.util.init_maximised_embed', array ('resourceobject'), true);
return $ code;
}
---------------------------
Saludos cordiales.
Verónica.