I'm using PDFObject to embed a pdf on a webpage. The resulting markup is:
<object data="http://www.example.com/myexample.pdf#view=fitH"
type="application/pdf" width="100%" height="471px"></object>
I need to run some javascript when the pdf actually finishes loading, but neither the onload, onloadeddata, onreadystatechange events nor the readyState property are realiable for this on all browsers. PDFObject also doesn't seem to provide any cross-browser event for this. How can I know when the PDF finishes loading?