GithubHelp home page GithubHelp logo

minimal sample? about pymupdf HOT 5 CLOSED

pymupdf avatar pymupdf commented on May 19, 2024
minimal sample?

from pymupdf.

Comments (5)

rk700 avatar rk700 commented on May 19, 2024

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.

from pymupdf.

ousia avatar ousia commented on May 19, 2024

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

from pymupdf.

JorjMcKie avatar JorjMcKie commented on May 19, 2024

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.

from pymupdf.

JorjMcKie avatar JorjMcKie commented on May 19, 2024

@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.

from pymupdf.

ousia avatar ousia commented on May 19, 2024

@JorjMcKie, many thanks for the sample.

from pymupdf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.