Skip to content

Instantly share code, notes, and snippets.

@michaelschnyder
Last active April 9, 2024 16:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelschnyder/3cbcf63228a3f24b7a8ff4a38b1a5d9a to your computer and use it in GitHub Desktop.
Save michaelschnyder/3cbcf63228a3f24b7a8ff4a38b1a5d9a to your computer and use it in GitHub Desktop.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\OcrMyPdf (WSL)]
"icon"="C:\\\\Windows\\\\shell32.dll,68"
"AppliesTo"="System.FileName:\"*.jpg\" OR System.FileName:\"*.jpeg\" OR System.FileName:\"*.tif\" OR System.FileName:\"*.png\" OR System.FileName:\"*.pdf\""
@="Convert to PDF/Run OCR"
[HKEY_CLASSES_ROOT\*\shell\OcrMyPdf (WSL)\command]
@="wsl ocrmypdf \"$(wslpath \"%1\")\" \"$(wslpath \"%1\" | cut -d'.' -f1).pdf\" --force-ocr"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment