Created
October 8, 2021 11:53
-
-
Save Prophet-Phoenix/8ce3624f50dd76f80f382c3b9fc1aef6 to your computer and use it in GitHub Desktop.
Drag and Drop windows batch file for ocrmypdf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
setlocal ENABLEDELAYEDEXPANSION | |
for %%x in (%*) do ( | |
set tmp=%%~x | |
echo OCR for !tmp! | |
ocrmypdf -l deu+eng --rotate-pages --jobs 12 "!tmp!" "!tmp:~0,-4!-ocr.pdf" | |
) | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment