pdf viewer for pyqt4 application?

天大地大妈咪最大 提交于 2019-12-09 15:59:17

问题


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.



来源:https://stackoverflow.com/questions/2435470/pdf-viewer-for-pyqt4-application

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!