llpp - a handy pdf viewer
llpp is a lightweight, fast and featureful PDF, EPUB, XPS and CBZ viewer based on MuPDF. It supports outline/bookmark/birdview/annotation views by one key pressed, It also supports vi-like custom key bindings by adding keymaps to achieve mouse free navigation.
The keybindings with the fresh install is not familiar for me to use actually. After checking the reference on archlinux， I find it is possible to configure key bindings. The configuration file locates in
$HOME/.config/llpp.conf, I modified it as follows by adding keymap definitions as below after a few tries.
Since there is no way for me to configure the shortcut keys of the foxit reader, and the ‘future’ version keep ignoring it. The custom key bindings helps me to replace foxit pdf reader with llpp as my default pdf viewer.
Before I use llpp as pdf viewer, I tried MuPDF once, the keyboard short-cuts and render result is quite satisfactory, but text selecting in MuPDF is terrible. Since llpp is based on MuPDF, I’m very concerned about text select and paste.
The initial select function cannot copy the selected text to clipboard. It must be using terminal like mechanism by sending selected text to xclip buffer instead of clipboard, you need middle button clicking to paste highlighted text. Fortunately there is an issue addressing this problem, if you want copy/paste the selected text to/from clipboard instead of xclip buffer, the
llpp.conf need change to:
selection-command='LC_CTYPE=UTF-8 xclip -i -selection clipboard' paste-command='LC_CTYPE=UTF-8 xclip -o -selection clipboard'
Press shift-insert to paste clipboard text. Also, you can map ctrl-v to shift-ins in the global keymap if you want to use ctrl-v instead.
Document printing is also use external command in llpp, the
path-launcher in the
llpp.conf is initially dedicated using lp to handle printing functionality.
ctrl-p is the keyboard shortcut to print document.
Furthermore, you also can change lp to gtklp, it can provide a GUI print dialog for detailed printing configurations.
path-launcher='gtklp -o media=a4 -o fit-to-page "%s"'
You may encounter a problem when use llpp for the first time, it cannot open links in the default browser. The
llpp.conf is responsible for this issue. To open links in your default browser, the setting need to change like:
You can annotate a pdf with
Shift + Right Click. To allow saving of annotations add
After annotating the file, save the changes by pressing
echos the current pdf path to the option savepath-command.