Version: 0.7.1 (using 4.1.2 (KDE 4.1.2), Debian packages) Compiler: cc OS: Linux (i686) release 2.6.26-1-686 As topic states, there is no command-line switch to start okular in full-screen mode. This would be extremely handy for my PDF build chain, though.
$ okular --version Qt: 4.4.3 KDE: 4.1.3 (KDE 4.1.3) Okular: 0.7.3 $ okular --help Usage: okular [Qt-options] [KDE-options] [options] [URL] Okular, a universal document viewer Generic options: --help Show help about options --help-qt Show Qt specific options --help-kde Show KDE specific options --help-all Show all options --author Show author information -v, --version Show version information --license Show license information -- End of options Options: -p, --page <number> Page of the document to be shown --presentation Start the document in presentation mode Arguments: URL Document to open
Sorry for not being clearer (it was 0600 local). I did not mean full-screen, I meant maximized window. If you would also add a command-line option to fit to width, I would be even happier :)
What is the rationale for it? Why cannot you leave Okular in fullscreen mode?
The full-screen mode which --help calls --presentation is just that, a presentation mode. You do not have access to any menus or anything else. Just the PDF. I do not want to present anything, though. I just need to check on the PDF I created, proof-read a section and quit again. As Okular does not remember its own size, it will start with a very small window and an even smaller PDF in said window. This is especially bad on a display with 1024*768. I want to spare myself the trouble of having to manually resize the window each time and just have my buildpdf() shell function do it.
(In reply to comment #4) > As Okular does not remember its > own size, it will start with a very small window and an even smaller PDF in > said window. Then you are working around bug #137108 - that is going to be fixed for KDE 4.1.4 -, aren't you?
No, I am not. Let me describe what I want to happen and what happens, instead: Real world: * I run okular foo.pdf * okular opens, window size is approximately 800*600 * foo.pdf is displayed, but rather small * I maximize okular * I press the zoom in button four times * I can work normally Dream world * I run okular.pdf, with or without additional parameters, I don't care * okular opens with a maximized window, displaying the PDF fit to width * I can work normally A way to achieve this without resorting to command line switches (though those _are_ useful) would be to enable okular to save its own size when exiting and restoring to that size, by default.
(In reply to comment #6) > A way to achieve this without resorting to command line switches (though those > _are_ useful) would be to enable okular to save its own size when exiting and > restoring to that size, by default. This is *exactly* the point you are missing: Okular (just like 99% of the KDE application) saves its window size automatically, this is something done by kdelibs. The fact that the window size is -not- restored correctly when closing a fullscreen application is bug #137108 (well, bug #150772 really). Thus, since KDE 4.1.4 (or KDE 4.2 beta1) you can close a fullscreen Okular and reopen it in the same way.
Ah, OK. Thanks :)