Bug 505083

Summary: The page count is not dynamically adjusted with the font size
Product: [Applications] okular Reporter: brutalnumberboy
Component: EPub backendAssignee: Okular developers <okular-devel>
Status: RESOLVED DUPLICATE    
Severity: normal CC: john.kizer
Priority: NOR    
Version First Reported In: 25.04.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description brutalnumberboy 2025-06-01 08:48:43 UTC
SUMMARY

The page count of an EPUB document viewed in Okular is not dynamically changed with the font size which leads to an incomplete document with missing pages or a document with extra empty pages

STEPS TO REPRODUCE
1. Open any EPUB book in Okular (You can download a book from Project Guthenberg)
2. Navigate to Settings -> Configure Backends -> EPUB and increase font size (must be bigger than default value)
3. Click on chapters in "Contents" sidebar (Okular will open the correct page but it will not be an actual chapter)
4. Navigate to settings again but now set value to smaller than the default one
5. Scroll down to the end of the document 

OBSERVED RESULT

Increasing the font size cuts off pages of the file. Decreasing the font size leaves empty pages.

EXPECTED RESULT

The page count adjust dynamically based on the font size

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.0
Kernel Version: 6.14.7-arch2-1 (64-bit)
Graphics Platform: Wayland
Processors: 6 × AMD Ryzen 5 4500U with Radeon Graphics
Memory: 7.2 GiB of RAM
Graphics Processor 1: AMD Radeon Graphics
Graphics Processor 2: llvmpipe

ADDITIONAL INFORMATION
Comment 1 John Kizer 2025-06-14 14:46:50 UTC
Merging this in with the existing bug report for this issue - thanks!

*** This bug has been marked as a duplicate of bug 407020 ***