A minimalistic PDF viewer with ergonomic keyboard shortcuts, bookmarks and annotations.
When run forwarded over ssh -X
, incorrect rendering at first run (see bug report).
I don't know how to fix this...
pdq filename.pdf
-p <n> open on page <n>
Action | Keyboard Shortcut | Button |
Reload file | Ctrl-l | ↺ |
Next Page | n | ⇨ |
Previous Page | p | ⇦ |
Scroll Up Slow | k | |
Scroll Up Fast | Shift-k | |
Scroll Down Slow | j | |
Scroll Down Fast | Shift-j | |
Scroll Left Slow | h | |
Scroll Left Fast | Shift-h | |
Scroll Right Slow | l | |
Scroll Right Fast | Shift-l | |
Zoom In | . | ⊕ |
Zoom Out | , | ⊖ |
Go back after link jump | b | ↩ |
Search Forward | Ctrl-s | 𝒮 |
Search Back | Ctrl-r | ℛ |
Give Up Searching | Ctrl-g | 𝒢 |
Stop Searching | Return | ⏎ |
Open bookmarks | Ctrl-b | ℬ |
Add bookmark | a | a |
Go to page | g | go |
Extract text | t | txt |
Copy path to .pdf to clipboard | c | c |
Bookmarks for the file filename.pdf
(or just fielname
) are stored in the XML file filename.pdq
;
the file is created when you add a new bookmarks (press a
), or just open the bookmarks manager (press Ctrl-b
).
It lists bookmarks with charhints (a,b,c,d,...). Pressing the corresponding
letter navigates to that bookmarked page. Pressing the letter with Shift
(as if a capital letter) removes that bookmark.
Right click with mouse on the place where you want to place the anchor. The dialog for entering annotation will pop up.
To display an annotation, left-click on its anchor.
Annotations are saved in the same filename.pdq
as bookmarks.
Right-click within the existing anchor (a colored circle). The anchor will disappear.
Right-click again on where you want the anchor to be. The old text will be pre-filled in the dialog.
(To delete the anchor, just cancel
istead of ok
.)
The configuration file is ~/.config/pdq.xml
Example is:
<config>
<dpi>112</dpi>
<invert/>
</config>
The presence of <invert/>
leads to white-on-black display. The <dpi>112</dpi>
is the initial DPI.