Hi,
I've built a web application which uses the PDF.js library for displaying PDF documents (exam papers) inside the browser. When users click a button, a jQuery-UI dialog pops open and the document is displayed within that dialog.
I have this working fine in all browsers (bar my specific version of Safari for windows which won't run the PDF.js sample code even) and the documents open up.
However, in Chrome I'm witnessing distortion in the displayed PDF. You can see an example of this at:
http://www.eeng.dcu.ie/~davidm/chrome_pdf.png
Firefox, IE, Opera are displaying this without problem in the dialog. I'm also reasonably certain that documents had rendered correctly in Chrome in dialogs before.
I'm not posting code, as I'm not looking for help debugging. I'm just wondering if anyone experienced with this library might have an idea of what could cause such strange behaviour in the PDF.js output? The sample:
http://mozilla.github.io/pdf.js/web/viewer.html is also working fine.
Any help would be greatly appreciated as I'm at a loss how to even start debugging this.
Many thanks in advance,
David
--
*
Email Disclaimer
"This e-mail and any files transmitted with it are confidential and are intended solely for use by the addressee. Any unauthorised dissemination, distribution or copying of this message and any attachments is strictly prohibited. If you have received this e-mail in error, please notify the sender and delete the message. Any views or opinions presented in this e-mail may solely be the views of the author and cannot be relied upon as being those of Dublin City University. E-mail communications such as this cannot be guaranteed to be virus-free, timely, secure or error-free and Dublin City University does not accept liability for any such matters or their consequences. Please consider the environment before printing this e-mail."
Séanadh Ríomhphoist
"Tá an ríomhphost seo agus aon chomhad a sheoltar leis faoi rún agus is lena úsáid ag an seolaí agus sin amháin é. Tá cosc iomlán ar scaipeadh, dháileadh nó chóipeáil neamhúdaraithe ar an teachtaireacht seo agus ar aon cheangaltán atá ag dul leis. Má tá an ríomhphost seo faighte agat trí dhearmad cuir sin in iúl le do thoil don seoltóir agus scrios an teachtaireacht. D’fhéadfadh sé gurb iad tuairimí an údair agus sin amháin atá in aon tuairimí no dearcthaí atá curtha i láthair sa ríomhphost seo agus níor chóir glacadh leo mar thuairimí nó dhearcthaí Ollscoil Chathair Bhaile Átha Cliath. Ní ghlactar leis go bhfuil cumarsáid ríomhphoist den sórt seo saor ó víreas, in am, slán, nó saor ó earráid agus ní ghlacann Ollscoil Chathair Bhaile Átha Cliath le dliteanas in aon chás den sórt sin ná as aon iarmhairt a d’eascródh astu. Cuimhnigh ar an timpeallacht le do thoil sula gcuireann tú an ríomhphost seo i gcló."
*