https://github.com/savjee/tesseract-searchable-pdf
Simple Bash script to make PDF's searchable
https://github.com/savjee/tesseract-searchable-pdf
Last synced: 8 months ago
JSON representation
Simple Bash script to make PDF's searchable
- Host: GitHub
- URL: https://github.com/savjee/tesseract-searchable-pdf
- Owner: Savjee
- License: mit
- Created: 2019-08-22T09:26:45.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-22T09:47:03.000Z (almost 7 years ago)
- Last Synced: 2025-03-15T18:52:00.498Z (over 1 year ago)
- Language: Shell
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tesseract-searchable-pdf
Simple bash script to make searchable PDF's with [Tesseract OCR](https://github.com/tesseract-ocr/) (adds a hidden text layer underneath the original image).
## Usage
The script takes 1 argument: the directory in which your PDF's are stored:
```
./ocr.sh /path/to/directory/with/pdfs
```
It will output searchable PDF's in the same directory, with an `ocr-` prefix.
## Install dependencies
This script requires tesseract and ghostscript, which on a Mac can be installed with [Homebrew](https://brew.sh):
```
brew install brew install gs tesseract tesseract-lang
```
## Known issues
* The output PDF files are much bigger than the input ones
* No multithreading, 1 file at a time