Bug 374991

Summary: Pages in wrong order, page missing
Product: [Applications] okular Reporter: jkissig
Component: PDF backendAssignee: Okular developers <okular-devel>
Status: RESOLVED UPSTREAM    
Severity: normal CC: aacid, lueck
Priority: NOR    
Version: 0.24.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: scanned pdf after ocr was done

Description jkissig 2017-01-13 09:09:57 UTC
Created attachment 103388 [details]
scanned pdf after ocr was done

Attached is a scan with pages 1-2-3-4 (handwritten on the sheets). On the scan an OCR was performed. 
Okular and Evince show 1-2-4-4. Firefox-plugin and acroread shows 1-2-3-4. Windows Adobe Reader shows 1-2-3-4
The scan without OCR although works fine in okular/evince so I assume the problem is in the OCR-lib or the pdf-lib of okular.

The scan is made by a professional scanner for libraries (Zeutschel) so I can not tell what pdf-libs are used on that specific scanner although a vendor mentioned Iris. 

Test:

open the attached file in okular and f.e. inside Firefox and look at the content of the scan
Comment 1 Burkhard Lück 2017-01-13 10:12:35 UTC
Not reproducable for me with
1)
Ubuntu 16.10
$ okular -v
Qt: 4.8.7
KDE: 4.14.22
Okular: 0.25.0
$ pdftops -v
pdftops version 0.44.0
shows correct order 1-2-3-4

2)
master compiled from sources
$ okular -v
okular 1.0.70
KDE Frameworks 5.30.0
Qt 5.6.1 (built against 5.6.1)
shows correct order 1-2-3-4
Comment 2 Albert Astals Cid 2017-01-15 22:26:52 UTC
What poppler version are you using?
Comment 3 jkissig 2017-01-16 19:47:01 UTC
$ okular -v
Qt: 4.8.7
KDE: 4.14.16
Okular: 0.24.2

$ sudo dpkg -l | grep poppler
ii  libpoppler-glib8:amd64                          0.41.0-0ubuntu1.1                          amd64        PDF rendering library (GLib-based shared library)
ii  libpoppler-qt4-4:amd64                          0.41.0-0ubuntu1.1                          amd64        PDF rendering library (Qt 4 based shared library)
ii  libpoppler-qt5-1:amd64                          0.41.0-0ubuntu1.1                          amd64        PDF rendering library (Qt 5 based shared library)
ii  libpoppler58:amd64                              0.41.0-0ubuntu1.1                          amd64        PDF rendering library
ii  poppler-data                                    0.4.7-7                                    all          encoding data for the poppler PDF rendering library
ii  poppler-utils                                   0.41.0-0ubuntu1.1                          amd64        PDF utilities (based on Poppler)
Comment 4 Albert Astals Cid 2017-01-16 21:14:07 UTC
Yes, that poppler version shows the document wrong, newer versions have it fixed.