Skip to content

Instantly share code, notes, and snippets.

@bblanchon
Created January 15, 2024 12:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bblanchon/33c8cc653197decfdaaacaba6a1ec371 to your computer and use it in GitHub Desktop.
Save bblanchon/33c8cc653197decfdaaacaba6a1ec371 to your computer and use it in GitHub Desktop.
Add PDF rotation to Windows Explorer's context menu
Windows Registry Editor Version 5.00
; Adds Rotate +90 and Rotate -90 to the context menu for PDF files
; Assumes qpdf is installed in C:\Program Files\qpdf
[HKEY_CLASSES_ROOT\SystemFileAssociations\.pdf\shell\Rotate +90]
"icon"="%SystemRoot%\\system32\\imageres.dll,-5345"
[HKEY_CLASSES_ROOT\SystemFileAssociations\.pdf\shell\Rotate +90\command]
@="\"C:\\Program Files\\qpdf\\bin\\qpdf.exe\" --replace-input --rotate=+90 \"%1\""
[HKEY_CLASSES_ROOT\SystemFileAssociations\.pdf\shell\Rotate -90]
"icon"="%SystemRoot%\\system32\\imageres.dll,-5344"
[HKEY_CLASSES_ROOT\SystemFileAssociations\.pdf\shell\Rotate -90\command]
@="\"C:\\Program Files\\qpdf\\bin\\qpdf.exe\" --replace-input --rotate=-90 \"%1\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment