Last active
October 3, 2023 07:47
-
-
Save marcaurele/108ae9e1e20c9af9da1485ec3be2321e to your computer and use it in GitHub Desktop.
OCR PDF inside a directory
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
# Option 1 | |
find . -printf '%p\n' -name '*.pdf' -exec ocrmypdf '{}' '{}' \; | |
# Option 2 | |
for f in *; do echo $f; ocrmypdf -l fra $f $f; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment