Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/simple.py
diff options
context:
space:
mode:
authorJohan 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)
commit782123e79edbc4c287c5edf6a007cff9a4625e09 (patch)
tree2534826c70921288300a0eece0eab023def478c5 /simple.py
parent59a52f4c9371299c2106683d1b0f141835384d91 (diff)
Add support for objects as return values, mostly working
out argument support.
Diffstat (limited to 'simple.py')
-rw-r--r--simple.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/simple.py b/simple.py
index f44d401..da709cb 100644
--- a/simple.py
+++ b/simple.py
@@ -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)