Bug 354735

Summary: not all pages from fb2 files are displayed
Product: [Applications] okular Reporter: alpir <tsebrenko>
Component: fictionbook backendAssignee: Okular developers <okular-devel>
Status: CONFIRMED ---    
Severity: normal CC: aacid, eugene.shalygin+bugzilla.kde, soshial, w01dnick, yurchor
Priority: NOR    
Version: 0.20.3   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
URL: http://www.litmir.co/data/Book/0/269000/269354/Slavkin_Viktor_Vzroslaya_doch_molodogo_cheloveka_%28sbornik%29_Litmir.net_269354_original_d3677.fb2.zip
Latest Commit: Version Fixed In:

Description alpir 2015-11-02 14:18:28 UTC
Okular version: 0.20.3 (from KDE 4.14.8)
Okular doesn't render all pages from Fiction Book files. File ended at about 76-78%.
This is true for me for every FB2 I have.

Reproducible: Always

Steps to Reproduce:
1. Download any FB2:
http://www.litmir.co/data/Book/0/269000/269354/Slavkin_Viktor_Vzroslaya_doch_molodogo_cheloveka_%28sbornik%29_Litmir.net_269354_original_d3677.fb2.zip
http://www.bookfb2.ru/fb2.php?num=490583&nam=%D0%A0%D1%8D%D0%B9%20%D0%9D%D0%B5%D0%BB%D1%8C%D1%81%D0%BE%D0%BD:%20%D0%92%20%D0%B2%D0%BE%D1%81%D0%B5%D0%BC%D1%8C%20%D1%83%D1%82%D1%80%D0%B0
2. Open it using okular and in another fb2 viewer.

Actual Results:  
In okular you can view only 76-78% from real size of file.

Expected Results:  
Render all pages from fb2 file.
Comment 1 Yuri Chornoivan 2015-11-02 14:33:59 UTC
Okular 0.23.60 (self-compiled), Mageia 5 x86_64

The linked files can be viewed to the end (no visible problems, all pages shown).
Comment 2 alpir 2015-11-02 15:29:17 UTC
I found a pattern - if in the module settings FictionBook the size of the font (Droid Sans Serif) 12, the number of pages is equal to the original. If more, then it does not show all the pages. If less than 12, then added to the book of blank pages
Comment 3 Mykola Krachkovsky 2016-04-04 07:17:04 UTC
Confirm. If used in FB2 module font differs from system default font by metrics then content doesn't fit to total page count and contents index is broken too.