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

This epub 3 file will not load and display correctly. #849

Closed
riordans opened this issue Jul 25, 2017 · 6 comments
Closed

This epub 3 file will not load and display correctly. #849

riordans opened this issue Jul 25, 2017 · 6 comments
Labels

Comments

@riordans
Copy link

https://www.dropbox.com/s/ugb0jvrpgvyx5sz/antoniostale.epub
This is how it should it should look
antonio-tale
This is how it looks in sumatra
antonio-tale-sumatra
I want to be able to use sumatra to view this epub and others like it

@pcdinh
Copy link

pcdinh commented Oct 31, 2017

SumatraPDF is unable to render tables in epub yet

@AbsolutelyFreeWeb
Copy link

AbsolutelyFreeWeb commented Dec 20, 2018

Hello, i have the same issue. The epub bacground pictures are not shown. However, it is not a table issue in my case. The images are referred to in the css, where they are given as background images. Also, their sizes need to be honored for correct rendering.

e.g:

#page-img-left { margin-left: 0px; margin-right: 0px; margin-top: 0px; margin-bottom: 0px; background-image: url(../Images/image00037.jpeg); background-size: 960px 960px; width: 960px; height: 960px; }
#page-img-right { margin-left: 0px; margin-right: 0px; left: 960px; margin-top: 0px; margin-bottom: 0px; background-image: url(../Images/image00038.jpeg); background-size: 960px 960px; width: 960px; height: 960px; }

Not sure if I should create a new bug, or it can be handled at the same time. The problem is the same. The background pictures are not shown. Here is how it should look like:

should

And here is how it shows now:

now

@GitHubRulesOK
Copy link
Collaborator

@kjk the latest daily builds seem to behave oddly with some variants of epub 3.0 the attached file is one of many where the download is ###.epub3 which will not now open in epub UI until renamed to ###.epub but these were generally acceptable to earlier versions of SumatraPDF with the new extension
anna-sewell_black-beauty.zip

@SumatraPeter
Copy link

SumatraPeter commented Dec 2, 2019

anna-sewell_black-beauty.epub3 gives me the loading error on 3.1.2 as well, whereas anna-sewell_black-beauty.epub works.

Also, I'm guessing the new extension is to indicate possibly significant differences between EPUB versions. I remember testing the EPUB3 given above back in 2017 and of course it did fail in Sumatra 3.1.2 (don't recall how the then latest MuPDF behaved, but I think it worked in Edge. . . not sure). Simply changing its extension from EPUB3 to EPUB might enable Sumatra to display the EPUB 2.x compatible sections, but of course that won't make it magically EPUB 3.x capable.

@GitHubRulesOK
Copy link
Collaborator

@SumatraPeter As usual you are correct, retesting a call to 3.1.2 the action has not changed,that is calling SumatraPDF filename.epub3 using

EbookUI [
	...
	UseFixedPageUI = true

Opens the file (in a 2.0 compatible way) whereas

EbookUI [
	...
	UseFixedPageUI = false

Raises an error message in both 3.1.2 and current builds

@GitHubRulesOK
Copy link
Collaborator

closing as without any samples other than a working one with unconventional file extension there is no longer a fixable issue !

similar/related sample of problem with enhanced epub DRM in open issue #1293

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

No branches or pull requests

5 participants