1
1
Metadata-Version: 1.1
2
2
Name: python-poppler-qt4
4
4
Summary: A Python binding to Poppler-Qt4
5
Home-page: http://python-poppler-qt4.googlecode.com/
5
Home-page: https://github.com/wbsoft/python-poppler-qt4
6
6
Author: Wilbert Berendsen
7
7
Author-email: wbsoft@xs4all.nl
9
Description: A Python binding to Poppler-Qt4 that aims for completeness and for being actively maintained.
9
Description: ==================
13
A Python binding for libpoppler-qt4 that aims for completeness and for being
16
Created and currently maintained by Wilbert Berendsen <wbsoft@xs4all.nl>.
18
Homepage: https://pypi.python.org/pypi/python-poppler-qt4/
24
d = popplerqt4.Poppler.Document.load('file.pdf')
30
The Python API closely follows the Poppler Qt4 C++ interface library API,
31
documented at http://people.freedesktop.org/~aacid/docs/qt4/ .
33
Whereever the C++ API requires ``QList``, ``QSet`` or ``QLinkedList``, any
34
Python sequence can be used.
35
API calls that return ``QList``, ``QSet`` or ``QLinkedList`` all return Python
38
There are a few differences:
40
``Poppler::Document::getPdfVersion(int *major, int *minor)`` can simply be
41
called as ``d.getPdfVersion()``, (where ``d`` is a ``Poppler::Document``
42
instance); it will return a tuple of two integers (major, minor).
44
``Poppler::FontIterator`` (returned by ``Poppler::Document::newFontIterator``)
45
is also a Python iterable (e.g. has ``__iter__()`` and ``__next__()`` methods).
46
So although you can use::
48
it = document.newFontIterator()
50
fonts = it.next() # list of FontInfo objects
53
you can also use the more Pythonic::
55
for fonts in document.newFontIterator():
58
In addition to the Poppler namespace, there are two toplevel module
61
``popplerqt4.version()``
62
returns the version of the ``python-poppler-qt4`` package as a
63
tuple of ints, e.g. ``(0, 18, 2)``.
65
``popplerqt4.poppler_version()``
66
returns the version of the linked Poppler-Qt4 library as a
67
tuple of ints, e.g. ``(0, 24, 5)``.
69
This is determined at build time. If at build time the Poppler-Qt4
70
version could not be determined and was not specified, an empty
71
tuple might be returned.
11
Classifier: Development Status :: 4 - Beta
75
Classifier: Development Status :: 5 - Production/Stable
12
76
Classifier: Intended Audience :: Developers
13
77
Classifier: License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)
14
78
Classifier: Operating System :: MacOS :: MacOS X
15
79
Classifier: Operating System :: Microsoft :: Windows
16
80
Classifier: Operating System :: POSIX
17
81
Classifier: Programming Language :: Python
82
Classifier: Programming Language :: Python :: 2.6
83
Classifier: Programming Language :: Python :: 2.7
84
Classifier: Programming Language :: Python :: 3
18
85
Classifier: Topic :: Multimedia :: Graphics :: Viewers