class_docstr: A class representing an OCR engine with capabilities similar to Tesseract OCR.
  
  This could be used to create a plugin for another OCR engine instead of
  Tesseract OCR.
docstr: Called to produce a text only PDF from a page image.
  
  A text only PDF should contain no visible material of any kind, as it
  will be grafted onto the input PDF page. It must be sized to the
  exact dimensions of the input image.
  
  This function executes in a worker thread or worker process. OCRmyPDF
  automatically parallelizes OCR over pages. The OCR engine should not
  introduce more parallelism.
  
  Args:
      input_file: A page image on which to perform OCR.
      output_pdf: The expected name of the output PDF.
      output_text: The expected name of a text file containing the
          recognized text.
      options: The command line options.
code: def generate_pdf(
      input_file: Path,
      output_pdf: Path,
      output_text: Path,
      options: Namespace,
  ) -> None:
      """Called to produce a text only PDF from a page image.
  
      A text only PDF should contain no visible material of any kind, as it
      will be grafted onto the input PDF page. It must be sized to the
      exact dimensions of the input image.
  
      This function executes in a worker thread or worker process. OCRmyPDF
      automatically parallelizes OCR over pages. The OCR engine should not
      introduce more parallelism.
  
      Args:
          input_file: A page image on which to perform OCR.
          output_pdf: The expected name of the output PDF.
          output_text: The expected name of a text file containing the
              recognized text.
          options: The command line options.
      """
  
imports: from __future__ import annotations
  from abc import ABC, abstractmethod
  from argparse import ArgumentParser, Namespace
  from collections.abc import Sequence, Set
  from logging import Handler
  from pathlib import Path
  from typing import TYPE_CHECKING, NamedTuple
  import pluggy
  from ocrmypdf import Executor, PdfContext
  from ocrmypdf._progressbar import ProgressBar
  from ocrmypdf.helpers import Resolution
label_desc: Use image node_id 8 for calling the OcrEngine obj's underlying member method code with example usage: obj.generate_pdf(input_file, output_pdf, output_text, options) without return types