Command Line Support for Logical Page Labels (and Shortcut Focus)

Hello,

I am using Okular on Xubuntu 24.04 and I’ve run into a limitation regarding Logical Page Labels (e.g., ii, iv, C-1).

Original Intent: I want to open a file at a specific logical page number using the command line.

  • The Problem: The -p (or --page) flag only accepts physical integers. Running okular -p ii document.pdf does not work.

Current Workflow Issues:

  1. Since the CLI fails, I tried to jump to the page once the file was open.

  2. The “Go to Page” (Ctrl+G) dialog also only accepts physical integers.

  3. I configured the “Page Number” shortcut in settings, but it does not give focus to the page navigation box at the bottom.

The Gap: There is currently no way to jump to a logical page label using only the keyboard or the command line.

My Proposals:

  1. Allow the -p command-line flag to resolve logical page labels.

  2. Add a “Focus Page Number Input” shortcut so users can type logical labels without needing to click the navigation box with a mouse.

Thanks for the help!