Document idea for producing companion text files

This commit is contained in:
James R. Barlow
2017-01-19 16:48:05 -08:00
parent 6cc5135d2d
commit 3f9adcd5e0
+11
View File
@@ -62,6 +62,17 @@ By default OCRmyPDF assumes the document is English.
Language packs must be installed for all languages specified. See :ref:`Installing additional language packs <lang-packs>`.
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 <https://poppler.freedesktop.org/>`_ is used to extract text from the finished PDF.
.. code-block:: bash
ocrmypdf input.pdf - | tee output.pdf | pdftotext - output.txt
OCR images, not PDFs
--------------------