pdfsandwich command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
pdfsandwich: command not found
or when using sudo you get the following error message
sudo: pdfsandwich: command not found
Solutions to pdfsandwich: command not found
How To Fix pdfsandwich: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu pdfsandwich is provided by pdfsandwich package.
pdfsandwich is:
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.
To fix this problem, we can install more using the command below.
sudo apt-get -y install pdfsandwich
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install pdfsandwich.
sudo apt -y install pdfsandwich
Or if you have aptitude installed you can use the following command.
sudo aptitude install pdfsandwich
Summary
In this tutorial we learn how to fix pdfsandwich command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.