diff options
author | Johan Dahlin <johan@src.gnome.org> | 2005-05-20 02:39:55 (GMT) |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2005-05-20 02:39:55 (GMT) |
commit | 782123e79edbc4c287c5edf6a007cff9a4625e09 (patch) | |
tree | 2534826c70921288300a0eece0eab023def478c5 /simple.py | |
parent | 59a52f4c9371299c2106683d1b0f141835384d91 (diff) |
Add support for objects as return values, mostly working
out argument support.
Diffstat (limited to 'simple.py')
-rw-r--r-- | simple.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -12,8 +12,11 @@ def main(args): filename = args[1] uri = 'file://' + os.path.abspath(filename) doc = Poppler.Document(uri, '') + print doc pages = doc.get_n_pages() - print doc.get_page(0) + page = doc.get_page(0) + print page + print page.get_size() print 'Document %s has %d pages' % (filename, pages) |