Password-protect current pdf (revisited) - link in comments reddit / emacs ---------------------------------------------------------------------- xenodium · 2022-07-09 11:54 ---------------------------------------------------------------------- xenodium · 2022-07-09 11:56 [https://xenodium.com/emacs-password-protect-current-pdf- revisited](https://xenodium.com/emacs-password-protect-current-pdf- revisited) With `dwim-shell-command--on-marked-files`, it becomes pretty simple to bring some of those command-line tools and make available with quick access: (defun dwim-shell-command-pdf-password-protect () "Speeds up gif(s)." (interactive) (dwim-shell-command--on-marked-files "Password protect pdf" (format "qpdf --verbose --encrypt '%s' '%s' 256 -- <> <>_enc.<>" (read-passwd "user-password: ") (read-passwd "owner-password: ")) :utils "qpdf")) ---------------------------------------------------------------------- pragmat1c1 · 2022-07-09 16:37 OT: How did you do this nice looking gif? ---------------------------------------------------------------------- xenodium · 2022-07-09 17:42 1. `⌘ (Command) ⇧ (Shift) 5` on macOS to launch built-in screen capture. 2. Above generates a .mov video. 3. Convert to .gif from Emacs via `M-x dwim-shell-command-convert-to- gif`, described at https://xenodium.com/emacs-dwim-shell-command