From cca04fd7998858db2b31c165104157ac01de480b Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Tue, 23 Jan 2024 23:35:43 -0800 Subject: [PATCH] Document ability to remove all OCR --- docs/cookbook.rst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/cookbook.rst b/docs/cookbook.rst index 9eb590bd..d32c0b8a 100644 --- a/docs/cookbook.rst +++ b/docs/cookbook.rst @@ -245,6 +245,20 @@ if all you want to is to apply image processing or PDF/A conversion. the case. Use ``--tesseract-non-ocr-timeout`` to control the timeout for non-OCR operations, if needed. +Remove all text or OCR from my PDF +---------------------------------- + +This is getting ridiculous, but OCRmyPDF can complete strip all textual +information from a PDF and reconstruct it as a "bag of images" PDF. + +.. code-block:: + + ocrmypdf --tesseract-timeout 0 --force-ocr input.pdf output.pdf + +Why would you want to do this? Perhaps you have a PDF where OCR +fails to produce useful results, and just want to get rid of all OCR information. +This command also removes OCR generated by third party tools. + Optimize images without performing OCR --------------------------------------