Though Okular may most often be started from the KDE program menu, or a desktop icon, it can also be opened at the command line prompt of a terminal window. There are a few useful options that are available when doing this.
By specifying the path and name of a particular file the user can have Okular open that file immediately upon startup. This option might look something like the following:
%okular/home/myhome/docs/mydoc.pdf
Note
For PDF documents, the name can be given as document_name#named_destination where named_destination is a particular named destination embedded in the document.
The following command line help options are available
okular-p --pagenumberOpen a page with a given number in the document. Also available through
okular-pnumberokular--presentationStart the document in presentation mode.
okular--printStart with print dialog.
okular--print-and-exitStart with print dialog and exit after printing.
okular--uniqueUnique instance control.
okular--noraiseAllows to prevent Okular window raising after the start.
okular--findstringTries to find and highlight a given string in the document. Only works if just one document is given as an argument of the
okularcommand.okular--editor-cmdstringSets the external editor command. You cannot set the editor command in an already running Okular instance. Please note that
--uniqueis not supported when setting the editor command at the commandline.