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 --------------------