Error Wrapper Pdf.js

Good afternoon from Venezuela, I’m trying to configure the wrapper pdf.js, according to the documentation at the hearing should I place the following code:

<? php

$ this-> widget (‘ext.pdfJs.QPdfJs’, array (

‘url’ => $ path,



but nothing is displayed and I want to look like on the demo page.


Not if anything to do, in firebug shows following error:

TypeError: pdfDocument.dataLoaded is not a function

Thanks in advance for the help.