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
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
What poppler version are you using?
$ 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)
Yes, that poppler version shows the document wrong, newer versions have it fixed.