fbpdf: update the vertical position only if loadpage() succeeds
[fbpdf.git] / README
blob1e0b04dc39dce795a1cece8d9dc8cab1f4a29845
1 FBPDF
2 =====
4 Fbpdf is a framebuffer pdf and djvu viewer.  There are three make
5 targets: fbpdf uses mupdf library for rendering pdf, fbpdf2 uses
6 poppler for the same purpose, and fbdjvu uses djvulibre library for
7 rendering djvu files.  The following options are available in all
8 three programs:
10   fbpdf [-r rotation] [-z zoom_x10] [-p page_number] file.pdf
12 The following table lists the commands available in fbpdf.  Most of
13 them accept a numerical prefix.  For instance, '^F' tells fbpdf to
14 show the next page while '5^F' tells it to show the fifth next page.
16 ==============  ================================================
17 KEY             ACTION
18 ==============  ================================================
19 ^F/J            next page
20 ^B/K            previous page
21 G               go to page (the last page if no prefix)
22 o               set page number (for 'G' command only)
23 O               set page number and go to current page
24 z               zoom; prefix multiplied by 10 (i.e. '15z' = 150%)
25 r               set rotation in degrees
26 i               print some information
27 q               quit
28 ^[/escape       clear the numerical prefix
29 mx              mark page as 'x' (or any other letter)
30 'x              jump to the page marked as 'x'
31 `x              jump to the page and position marked as 'x'
32 j               scroll down
33 k               scroll up
34 h               scroll left
35 l               scroll right
36 [               align with the left edge of the page
37 ]               align with the right edge of the page
38 {               align with the leftmost character on the page
39 }               align with the rightmost character on the page
40 H               show page top
41 M               centre the page vertically
42 L               show page bottom
43 C               centre the page horizontally
44 ^D/space        page down
45 ^U/^H/backspace page up
46 ^L              redraw
47 e               reload current file
48 f               zoom to fit page height
49 w               zoom to fit page width
50 W               zoom to fit page contents horizontally
51 Z               set the default zoom level for 'z' command
52 d               sleep one second before the next command
53 ==============  ================================================