Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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