I am developing an application in PyQt4 that ultimately should open and show PDF files. There is a python library for this task: python-poppler (in different spellings).
The problem is that it is terribly documented, and the only simple working example that I have found so far is using Python + Gtk + Cairo, and the Python + Qt example that I have found uses an older version of the library and many major changes have occurred since then, so it no longer works. For a week, I have been trying to use the code in the PyGtk example to crack the PyQt code, but so far have not been successful.
Has anyone got a simple example of a Python-Qt program that opens and displays a PDF file that may be useful to the community to learn how to work with this library?
Many thanks.
Archive with a broken pyqt example
Archive with a working PyGtk example
source share