Bug 374991 - Pages in wrong order, page missing
Summary: Pages in wrong order, page missing
Status: RESOLVED UPSTREAM
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: 0.24.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-13 09:09 UTC by jkissig
Modified: 2017-01-16 21:14 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
scanned pdf after ocr was done (138.68 KB, application/pdf)
2017-01-13 09:09 UTC, jkissig
Details

Note You need to log in before you can comment on or make changes to this bug.
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.