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

Add PDF support to Bookworm #34

Closed
babluboy opened this issue Apr 18, 2017 · 2 comments
Closed

Add PDF support to Bookworm #34

babluboy opened this issue Apr 18, 2017 · 2 comments
Assignees
Milestone

Comments

@babluboy
Copy link
Owner

Initial digging suggests uses of the poppler utility pdftohtml and then use the output HTML files on WebKit...

@babluboy babluboy self-assigned this Apr 28, 2017
@babluboy babluboy added this to the 0.6 milestone Apr 28, 2017
@babluboy
Copy link
Owner Author

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

@babluboy
Copy link
Owner Author

babluboy commented Apr 30, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant