pdf viewer for pyqt4 application?

2019-04-06 21:06发布

问题:

I'm writing a Python+Qt4 application that would ideally need to pop up a window every once in a while, to display pdf documents and allow very basic operations, namely scrolling through the different pages and printing the document.

I've found the reportLab to create pdf files, but nothing about pdf viewers. Does anyone knows anything that might help. i was really hoping for the existence of something like the QWebView widget...

thanks in advance to all

回答1:

You can use the Poppler library for that.



回答2:

A Python binding to poppler-qt4 that aims for completeness and for being actively maintained. https://code.google.com/p/python-poppler-qt4/



回答3:

what about okular? It is a full app, but it can always be call from another app.