Restore stored geometry when using history
[llpp.git] / adoc / llpp.adoc
blob4fc5a2dc7b4d6cb2e33d42fcef473ffd9fa9a6db
1 llpp(1)
2 =======
4 == NAME
5 llpp - a graphical document pager which aims to superficially resemble
6 less
8 == SYNOPSIS
9 llpp [-c path] [-css path] [-dest named-dest] [-f path] [-gc]
10  [-help|--help] [-last] [-no-title] [-origin origin] [-p password]
11  [-page page-number] [-remote path] [-tcf path] [-layout-height height]
12  [-v] some.pdf
14 == DESCRIPTION
15 *llpp* is a graphical document pager utilizing MuPDF
16 (https://mupdf.com/) library. The default keybindings resemble those
17 of less(1)
19 == OPTIONS
20 -c path::
21 Set path to the configuration file
23 -css path::
24 Set path to the style sheet to use with EPUB/HTML
26 -dest named-dest::
27 Set named destination
29 -f path::
30 Set path to the user interface font
32 -gc::
33 Collect config garbage
35 -help, --help::
36 Display list of options
38 -last::
39 Open last visited document
41 -no-title::
42 Ignore document title
44 -origin origin::
45 <undocumented>
47 -p password::
48 Set password
50 -page page-number::
51 Jump to page
53 -remote path::
54 Set path to the source of remote commands
56 -tcf path::
57 Set path to the trim cache file
59 -layout-height height::
60 Set page height for reflowable documents (-1 == default, 0 == unlimited)
62 -v::
63 Print version and exit
65 == KEY BINDINGS
66 Open a document with llpp, then press `F1` or `h` to switch to help mode.
68 == FILES
70 === ~/.config/llpp.conf
71 This is the user specific configuration file. If $XDG_CONFIG_HOME is
72 set $XDG_CONFIG_HOME/llpp.conf is used instead. It has an XML
73 structure.
75 You can specify a custom path using the -c option.
77 .Configuration structure
78 -------------------------------------------------------------
79 <llppconfig>
80 <ui-font size='20'/>
81 <defaults
82   width='1200'
83   height='1000'
84   ...
85   use-document-css='true'/>
86   <doc path='/some/path/file1.pdf'
87     page='1'
88     ...
89     height='1000'/>
90   <doc path='/some/path/file2.pdf'
91     page='3'
92     ...
93     height='600'/>
94   ...
95 </llppconfig>
96 -------------------------------------------------------------
98 ==== Some configuration tips
99 - To change the user interface font:
100 -------------------------------------------------------------
101 <llppconfig>
102   <ui-font size='16'>
103     <![CDATA[/path/to/fonts/PTF55F.ttf]]>
104   </ui-font>
105   <defaults ... />
106 </llppconfig>
107 -------------------------------------------------------------
108 - To change keybindings, add keymaps to the defaults element, for
109 instance following example disables Escape key in the view mode:
111 -------------------------------------------------------------
112 <llppconfig>
113   <defaults ... >
114     <keymap mode='view'>
115       <map in='esc' out=/>
116     </keymap>
117   </defaults>
118 </llppconfig>
119 -------------------------------------------------------------
121 The different modes are _birdseye_, _global_, _help_, _info_,
122 _listview_, _outline_, and _view_.
124 == SEE ALSO
125 llppac(1), llpphtml(1)
127 == ENVIRONMENT
128 === LLPP_ASKPASS
129 Command to inquire user about the password (dmenu/rofi like)
131 == REPORTING BUGS
132 https://github.com/moosotc/llpp/issues or mailto:moosotc@gmail.com
134 == macOS
135 Nicolás Ojeda Bär contributed macOS port.