sumatrapdfreader / sumatrapdf

SumatraPDF reader
http://www.sumatrapdfreader.org
GNU General Public License v3.0
13.7k stars 1.73k forks source link

Some epubs are not displayed properly #4035

Open Pocokk opened 9 months ago

Pocokk commented 9 months ago

SumatraPDF version

Describe the bug When I open the file, every page looks weird, like enlarged text and so forth.

To Reproduce Steps to reproduce the behavior: 1) Download the sample file https://www.warhammerdigital.com/Downloads/Product/ePub%20and%20MOBI%20Extracts/T/60042799001-WHTOW-Eng-Rulebook-EPUB-2024-PREVIEW.epub 2) Open it 3) See how strange looking it is.

Expected behavior It should look something like this on this preview image

File that reproduces the problem 60042799001-WHTOW-Eng-Rulebook-EPUB-2024-PREVIEW.epub from https://www.warhammerdigital.com/new-exclusive/featured/warhammer-the-old-world-rulebook-epub-2024.html

Screenshots A few examples

Additional context I think this isn't a new issue per-se, but I just noticed it now.

GitHubRulesOK commented 9 months ago

Yes its an odd way to build an ePub as Edge also has to use a fixed size which causes problems seeing it as one page image image

Pocokk commented 8 months ago

Another sample file, this is a comic book basically, built in epub format, same issues unfortunately:

https://www.blacklibrary.com/Downloads/Product/ePub%20and%20MOBI%20Extracts/M/Extract-Macragges-Honour-2019.epub

kjk commented 7 months ago

Yeah, it has CSS that mupdf doesn't quite understands.

It sets gigantic font sizes and gigantic size for the div, placing each string at an absolute position, presumably hoping it'll get scaled down to the size of the page.

kjk commented 7 months ago

Reported to mupdf: https://bugs.ghostscript.com/show_bug.cgi?id=707719

Pocokk commented 7 months ago

That company Games Workshop tends to release their rulebooks like this, similar format and whatnot, would be nice if the mu folks can try to have a look at it :)