summaryrefslogtreecommitdiff
path: root/README.org
diff options
context:
space:
mode:
authorVisuwesh <visuweshm@gmail.com>2022-10-24 17:10:58 +0530
committerVedang Manerikar <ved.manerikar@gmail.com>2023-01-17 09:02:15 +0530
commit2037c52f127f3971e8f8bcd1a8874bcaa4c8f5ba (patch)
tree6e0cb6933160d39aa45c3f5ea6408a8664b9e4ec /README.org
parente55e2ceca7a6091265eadec254c7fad98851a886 (diff)
Add a dedicated rotation command and keybinding
We need a dedicated command for rotation since when `pdf-tools` redisplays the image, the `:rotation` image-property is lost. Pdf-tools redisplays the images when changing pages, zooming in/out, setting the slice, etc. so this is essential to have. A variable is used simply because `pdf-tools` already uses a variable to keep track of the current scaling. * lisp/pdf-view.el (pdf-view--current-rotation): Add new variable to keep track of angle. (pdf-view-create-page): Account for above. (pdf-view-mode-map): Add the new command under "R". (pdf-view-rotate): Add new command. Fixes: #152 Closes: #165
Diffstat (limited to 'README.org')
-rw-r--r--README.org2
1 files changed, 2 insertions, 0 deletions
diff --git a/README.org b/README.org
index c4306b9..961a75a 100644
--- a/README.org
+++ b/README.org
@@ -288,6 +288,8 @@ Note that ~pdf-tools~ renders the PDF as images inside Emacs. This means that al
| Trim Margins (set slice to bounding box) | ~s b~ |
| Reset Margins | ~s r~ |
| Reset Zoom | ~0~ |
+| Rotate Page | ~R~ |
+|------------------------------------------+-----------------|
** Annotations
:PROPERTIES: