How to render PDF using pdf.js viewer in PyQt?
I have tried adding the pdf.js viewer files in my project and it works in browsers like Chrome, Mozilla, Safari, etc, but it's not loading some pages in node-webkit and PyQt webkit. I am trying to load the file using an iframe, like this: <iframe src="/test/?file=/assets/pdf/example.pdf#page=3"> </iframe> I've found this thread over at the Qt Forums , where thebeast44 posted a snippet of Qt code answering your question. My translation to python is below. You'll also need to unpack the res folder from the author's original code , I think he just modified the viewer... I've also attached said