Version: Okular 0.8.1 (using KDE 4.2.1) Compiler: gcc (Gentoo 4.3.3-r1 p1.1, pie-10.1.5) 4.3.3 OS: Linux Installed from: Gentoo Packages For some PDF eBooks, the Catalog section contains a PageLayout field which contain TwoColumnLeft or TwoColumnRight. PageLayout (Optional) A name object specifying the page layout to be used when the document is opened: SinglePage : Display one page at a time. OneColumn : Display the pages in one column. TwoColumnLeft : Display the pages in two columns, with odd- numbered pages on the left. TwoColumnRight : Display the pages in two columns, with odd- numbered pages on the right. (See implementation note 19 in Appendix H.) Default value: SinglePage. This option is used in PDFs generated by OpenOffice.
Never claimed we would follow them, so this is more a wish.
The current version of Okular seems to be 0.9.3. Do you plan to implement this feature in near future ? (But, I agree this implementation isn't critic, but just for comfort with some PDF files)
Can you please attach a file with such feature so we can test?
Created attachment 77951 [details] TwoColumnLeft layout example
Created attachment 77952 [details] TwoColumnRight layout example
These two files can be tested with Adobe Reader.
Thanks :-)
I am confirming this issue for Okular 0.19.2. Also noting that Apple's Preview.app does correctly display each file when View -> Two Pages is selected.
Here is some more information: I think this is the related file for loading PDFs https://projects.kde.org/projects/kde/kdegraphics/okular/repository/revisions/master/entry/generators/poppler/generator_pdf.cpp And here is the API reference for Poppler which shows that the Document / PageLayout field can be read by the library. I think the solution to this issue will to be to edit generator_pdf above in the function Okular::DocumentInfo PDFGenerator::generateDocumentInfo( const QSet<Okular::DocumentInfo::Key> &keys ) const
The Two Column left is working for me, Click on view menu-> view mode -> facing pages. I am not able to find the two column right option. Is there any specific button naming odd pages left or right for these 2 options?
sahil this has nothing to do with what you say, please read the bug again, it clearly specifies this is about a PDF file specifiying how it should be shown, not the user changing anything
I am confirming this issue for Okular 1.3.2, at least for TwoPageRight value of PageLayout. I guess it is useless to open a new bug report since hte current one is about okular not following (any) PageLayout PDF specification.
A possibly relevant merge request was started @ https://invent.kde.org/graphics/okular/-/merge_requests/1039
Git commit 036b037d8ceb521213293ea6765c62037b0616e1 by Albert Astals Cid, on behalf of Athul Raj Kollareth. Committed on 19/08/2024 at 22:36. Pushed by aacid into branch 'master'. Support pdf Default Page Layout Allow pdf to specify default view mode. M +22 -0 core/document.cpp M +6 -0 core/document_p.h M +10 -0 core/generator.cpp M +26 -0 core/generator.h M +38 -0 generators/poppler/generator_pdf.cpp M +2 -0 generators/poppler/generator_pdf.h https://invent.kde.org/graphics/okular/-/commit/036b037d8ceb521213293ea6765c62037b0616e1