Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minimal sample? #2

Closed
ousia opened this issue Sep 23, 2013 · 5 comments
Closed

minimal sample? #2

ousia opened this issue Sep 23, 2013 · 5 comments

Comments

@ousia
Copy link
Contributor

ousia commented Sep 23, 2013

I wonder whether it would be possible to include a minimal demo that displays a given PDF file (selected from the command line) and that goes page up and page down.

I mean something similar to the demo from poppler-python.

@ousia ousia changed the title minimal exsample? minimal sample? Dec 29, 2014
@rk700
Copy link
Contributor

rk700 commented Dec 30, 2014

Hey,

I know it's too late. Sorry...But if you are still looking for demos, then this one https://github.com/rk700/rbook/blob/master/rbook/r_pdf.py might be helpful, although it's too large to be a demo.

Anyway, this module is out of date and I guess poppler is a better choice if you need some PDF library in python.

@ousia
Copy link
Contributor Author

ousia commented Dec 30, 2014

I was really interested in your bindings because poppler is much slower than mupdf.

@JorjMcKie
Copy link
Collaborator

ousia,
I am working on an example as you are looking for. Hopefully I can put it on the wiki pages later today.
As a heads up: based on Python 2.7.9 and wxWidgets / wxPython it will display a PDF with forward / backward scroll.

@JorjMcKie
Copy link
Collaborator

@ousia
If you are still interested, have a look at the PDF_display.py example in the demo folder. I tried to keep it simple - with obvious drawbacks onthe functionality side: However:

  • starting it with a PDF-file parameter, it will display it in a scrollable window with buttons for previous / next and a field for direct jump to any page.
  • rendering fully works at an amazing speed

NB:
There also is an example in wiki for pulling out a the document's outline in Python list format. For my reuqirements, this is more practical than a complicated journey through some dubious entry trees.

@ousia
Copy link
Contributor Author

ousia commented May 20, 2015

@JorjMcKie, many thanks for the sample.

JorjMcKie added a commit that referenced this issue Nov 25, 2018
JorjMcKie added a commit that referenced this issue Nov 25, 2018
Merge pull request #2 from rk700/master
jamie-lemon added a commit that referenced this issue Sep 4, 2023
- Journalling
- Low Level Interfaces
- Multiprocessing
- Optional Content
jamie-lemon added a commit that referenced this issue Sep 26, 2023
- Journalling
- Low Level Interfaces
- Multiprocessing
- Optional Content
jamie-lemon added a commit that referenced this issue Sep 26, 2023
- Journalling
- Low Level Interfaces
- Multiprocessing
- Optional Content
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants