pdfsandwich
Tool to generate "sandwich" OCR pdf files
Install
- All systems
-
curl cmd.cat/pdfsandwich.sh
- Debian
-
apt-get install pdfsandwich
- Ubuntu
-
apt-get install pdfsandwich
- Kali Linux
-
apt-get install pdfsandwich
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install pdfsandwich
- OS X
-
brew install pdfsandwich
- Raspbian
-
apt-get install pdfsandwich
- Dockerfile
- dockerfile.run/pdfsandwich
pdfsandwich
Tool to generate "sandwich" OCR pdf files
pdfsandwich generates "sandwich" OCR pdf files, i.e. pdf files which contain only images (no text) will be processed by optical character recognition (OCR) and the text will be added to each page invisibly "behind" the images. pdfsandwich is a command line tool which is supposed to be useful to OCR scanned books or journals. It is able to recognize the page layout even for multicolumn text. Essentially, pdfsandwich is a wrapper script which calls the following binaries: convert, unpaper, gs (only for psd resizing), hocr2pdf (for tesseract < 3.03), and tesseract.