
#Pdfinfo mac pdf#
If you have a scanned pdf file, for instance this one: alice.pdf (which is the first chapter of a novel you might have heard of), invoke pdfsandwich like this:
#Pdfinfo mac install#
If OCaml is installed on your system, you can compile and install as follows: Svn checkout svn://.net/p/pdfsandwich/code/trunk/src pdfsandwich tar.bz2 package from the download area on the project website or check them out by subversion:
#Pdfinfo mac software#
Pdfsandwich is open source software (license: GPL). Ports are available for FreeBSD and OpenBSD.

Pdfsandwich is available through Homebrew. An (incomplete) list of pdfsandwich ports can be found on. Several other Linux distributions ship pdfsandwich through their standard repositories, such as Arch or Gentoo. Sudo dpkg -i pdfsandwich_0.1.7_b # If there are error messages due to missing dependencies, ignore them and proceed. pdfsandwich_0.1.7_b to some local directory, and either use your preferred graphical package manager or execute the following commands in this directory: If you prefer to install the latest version, download the respective deb file, e.g. Independent of this, I maintain pdfsandwich deb packages which are available for Download on the project website. Download and Installation Linux Debian/Ubuntuĭebian and Ubuntu provide pdfsandwich through their standard repositories, although not always the latest versions. Since version 0.0.5 pdfsandwich uses tesseract instead of cuneiform for OCR. Since version 0.0.9 pdfsandwich optionally preprocesses scanned pdfs by unpaper. Ghostscript is now optional only needed for resizing pdf pages, if the respective command line option is given. Since version 0.1.5 pdfsandwich uses pdfinfo and pdfunite instead of ghostscript for most operations. Note: If you use Tesseract 4 or later, it is highly recommended to use pdfsandwich 0.1.7 or later, as Tesseract may freeze when called in multiple threads. For optimally scanned pdf files, this can be switched off by option -nopreproc to speed up processing. For instance, slightly rotated pages are automatically straightened and dark edges removed. By default, pdfsandwich runs unpaper to enhance the readability of scanned pages and to improve OCR. While pdfsandwich works with any version of tesseract from version 3.0 on, tesseract 3.03 or later is recommended for best performance. It supports parallel processing on multiprocessor systems. It is known to run on Unix systems and has been tested on Linux and MacOS X. It is able to recognize the page layout even for multicolumn text.Įssentially, pdfsandwich is a wrapper script which calls the following binaries: unpaper (since version 0.0.9), convert, gs, hocr2pdf (for tesseract prior to version 3.03), and tesseract. Pdfsandwich is a command line tool which is supposed to be useful to OCR scanned books or journals. 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 generates "sandwich" OCR pdf files, i.e.

Pdfsandwich pdfsandwich: A tool to make "sandwich" OCR pdf files
