Coder Social home page Coder Social logo

Add PDF support to Bookworm about bookworm HOT 2 CLOSED

babluboy avatar babluboy commented on May 20, 2024
Add PDF support to Bookworm

from bookworm.

Comments (2)

babluboy avatar babluboy commented on May 20, 2024

pdftohtml does not give complete control on the PDF and uses its own images for borders, etc...decided to put the extra effort of parsing the PDF document using the poppler library...that will provide the API level control on the PDF...

from bookworm.

babluboy avatar babluboy commented on May 20, 2024

Just pushed a version of Bookworm with PDF support based on the use of Poppler and "pdftohtml". However the following needs to be completed:

  • Avoid re-parsing of the book once it has been parsed and added to the library - this can be done by maintaining the parsed contents in the ~/.config/bookworm folder until a book is not removed from the library. This duplicates the contents of the book and hence adds to storage. Add a toggle button to choose between performance and storage
  • PDF parsing and conversion to HTML takes considerable time, especially for PDFs with images - will need to see if pdftohtml can be optimized
  • Poppler generated HTML files are not optimized in terms of the number of words per line. Some work is needed to optimize this
  • Add contractor support for PDF mime type to offer support for Bookworm in Files

from bookworm.

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.