PDA

View Full Version : How to open pdf in plugin with qtwebkit



Timmer
10th July 2009, 21:29
When I use QtWebkit (4.5.2) to open a pdf, it just shows a blank page. Do I need to do anything special to make the Acrobat plugin work?

I haven't managed to find anything even related to plugins, aside from Flash i the last couple of hours of googling, and those are mostly just announcements that flash works - which it does.

juddster
23rd July 2009, 11:46
I'm having the same problem.

It doesn't seem to matter whether I try to load a PDF into a QWebView directly from a URL (e.g. http://doc.trolltech.com/qq/QtQuarterly30.pdf) or whether I embed the PDF in an object tag on an HTML page.

The plugin seems to load and doesn't report any errors but the area of the screen which should show the PDF doesn't paint properly.

I also tried to load a PDF in the Browser QT sample and got the same results. If I try in a browser (IE and Safari tried), it loads the PDF no problem.

I have Adobe Reader 9 installed, OS is Windows XP.

Anyone know how to get this working?

Thanks.