sumatrapdfreader / sumatrapdf

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

'eating' space, image and data between pages in EPUB #2235

Open Aliaksandr3by opened 2 years ago

Aliaksandr3by commented 2 years ago

'eating' space, image and data between pages

image image

GitHubRulesOK commented 2 years ago

A sample file is always required for investigation as to why one file has specific behaviour even if observed in several files as it may not be one common cause (other than MuPDF or SumatraPDF)

Aliaksandr3by commented 2 years ago

[Core Java, Volume I 12 Ed.zip]

Aliaksandr3by commented 2 years ago

I test the problem on Calibri (2nd pic) and Sumantra (1st pic)

GitHubRulesOK commented 2 years ago

I appears to be a MuPDF issue as in 1.18 it is not handled well the pages are indicated as A5 but the shape is taller thus number of pages seems wrong in its interpretation. here are legacy and current SumatraPDF (Now using MuPDF) image

@kjk looks like some collateral damage affects bookmarks as a result ?

kjk commented 2 years ago

One issue in mupdf epub renderer is that if an image is grater that the (arbitrary) page size, instead of being scaled down to fit, it gets clipped.

This file probably shows other issues related to epub renderer not fitting things into a fixed page size.

GitHubRulesOK commented 2 years ago

@kjk Since image placement was recently improved this OP issue seems resolved here using a different web copy image is moved to next page (above link was removed) image