From 73b88a0a6ffcbbbca6832108172257c39b06247c Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Fri, 28 Oct 2016 01:22:40 -0700 Subject: [PATCH] More work on documentation --- docs/cookbook.rst | 8 +++++--- docs/errors.rst | 33 +++++++++++++++++++++++++++++++++ docs/index.rst | 1 + docs/introduction.rst | 12 +++++++----- ocrmypdf/__main__.py | 3 +++ 5 files changed, 49 insertions(+), 8 deletions(-) create mode 100644 docs/errors.rst diff --git a/docs/cookbook.rst b/docs/cookbook.rst index 5c191f0b..bebbc61b 100644 --- a/docs/cookbook.rst +++ b/docs/cookbook.rst @@ -69,9 +69,11 @@ You can also use Tesseract 3.04+ directly to convert single page images or multi Image processing ---------------- -OCRmyPDF perform some image processing on each page of a PDF, if desired. The same processing is applied to each page. +OCRmyPDF perform some image processing on each page of a PDF, if desired. The same processing is applied to each page. It is suggested that the user review files after image processing as these commands might remove desirable content, especially from poor quality scans. -OCRmyPDF has two image processing functions: deskew and clean. +* ``--rotate-pages`` attempts to determine the correct orientation for each page and rotates the page if necessary. + +* ``--remove-background`` attempts to detect and remove a noisy background from grayscale or color images. Monochrome images are ignored. This should not be used on documents that contain color photos as it may remove them. * ``--deskew`` will correct pages were scanned at a skewed angle by rotating them back into place. Skew determination and correction is performed using `Postl's variance of line sums `_ algorithm as implemented in `Leptonica `_. @@ -127,7 +129,7 @@ Consider using the excellent `GNU Parallel