Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to open a PDF from an action in QGis. The PDF rests on a server, not local.

So far I tried this (as Python):

from PyQt4.QtCore import QUrl; 
from PyQt4.QtWebKit import QWebView;  
myWV = QWebView(None); 
myWV.load(QUrl(('[% "path" %]));

This just opens an empty window. It works with a png.

Can anybody tell me how to do that. Thanks!

share|improve this question
You are missing a single quote in your string for a start. myWV.load(QUrl('[% "path" %]')); – Nathan W Aug 21 '13 at 10:41

It seems that QWebView does support PDF though the systems PDF web plugin however it seems a bit hit and miss for me.

You can open the report in the default web browser using the Open command

enter image description here

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.