GithubHelp home page GithubHelp logo

Request for epub reading about npdf HOT 7 CLOSED

legimet avatar legimet commented on September 27, 2024
Request for epub reading

from npdf.

Comments (7)

Legimet avatar Legimet commented on September 27, 2024

I haven't tested, but if you build the latest version from git, it should
support EPUB and HTML, because support was recently added to MuPDF.

On Saturday, November 21, 2015 03:43:23 AM davy39 wrote:

Hi,
I wonder if it is possible to modify the program in order to be able to read
epubs & html. With such kind of small screen, I think that epub are better
than pdf due to their dynamic rendering when zooming. Thank for your work


Reply to this email directly or view it on GitHub:
#10

from npdf.

davy39 avatar davy39 commented on September 27, 2024

It looks like main.cpp cfg_register_fileext needed to be implemented as well.
I've done that plus upgrade to mupdf 1.8 (see pull request).
I still not able to open html or epub file, I'm getting "Can't open document" message.
Maybe I'm not building the prg correctly...
Could you try please ?
Thanks

from npdf.

Legimet avatar Legimet commented on September 27, 2024

Now that I remember correctly, this actually worked with MuPDF 1.7a. Apparently the issue now is something to do with fonts. When trying to open an HTML file I get the following output:

error: cannot load fallback font
IME: non-ALPHA key pressed
error: can't open document
uncaught exception: can't open document

from npdf.

Legimet avatar Legimet commented on September 27, 2024

See http://bugs.ghostscript.com/show_bug.cgi?id=696326.

from npdf.

davy39 avatar davy39 commented on September 27, 2024

Do you mean that building without -DNOCJK fix this issue ?
I cannot even get the above message... Could you provide a build for testing please ?

from npdf.

Legimet avatar Legimet commented on September 27, 2024

You can either replace the -DNOCJK flag with -DNOCJKFULL, or remove it. Unfortunately, this more than doubles the size of nPDF.tns.

from npdf.

Legimet avatar Legimet commented on September 27, 2024

A build with EPUB support is now included.

from npdf.

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.