From 098f5d4f0ba9b2f166e65e454d4a47cb754b6b9b Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Thu, 20 Jul 2017 16:20:17 -0700 Subject: [PATCH] docs: remove deprecated example of pdftotext --- docs/cookbook.rst | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/docs/cookbook.rst b/docs/cookbook.rst index a2bbd9cb..ca14cb16 100644 --- a/docs/cookbook.rst +++ b/docs/cookbook.rst @@ -72,19 +72,11 @@ Language packs must be installed for all languages specified. See :ref:`Installi Produce PDF and text file containing OCR text """"""""""""""""""""""""""""""""""""""""""""" -This produces a file named "output.pdf" and a companion text file named "output.txt". The ``pdftotext`` program from -`Poppler `_ is used to extract text from the finished PDF. - +This produces a file named "output.pdf" and a companion text file named "output.txt". .. code-block:: bash - ocrmypdf input.pdf - | tee output.pdf | pdftotext - output.txt - -.. note:: - - To get pdftotext, Debian/Ubuntu users may ``apt-get install poppler-utils`` - and macOS users may ``brew install poppler`` respectively. - + ocrmypdf --sidecar output.txt input.pdf output.pdf OCR images, not PDFs --------------------