
    j5j                    D    d Z ddlmZ ddlmZmZ ddlmZmZm	Z	m
Z
mZ dZy)a  Transform OCR output to text-only PDFs.

This package provides tools for:
1. Parsing OCR output (hOCR format) into generic OcrElement structures
2. Rendering OcrElement structures to searchable PDF text layers

The architecture separates parsing from rendering, allowing:
- Support for multiple OCR input formats (hOCR, ALTO, custom engines)
- Independent improvements to text rendering
- Reuse of the OcrElement data model for other purposes

Main components:
- OcrElement: Generic dataclass representing OCR output structure
- HocrParser: Parses hOCR files into OcrElement trees
- Fpdf2PdfRenderer: Renders OcrElement trees to PDF text layers (via fpdf2)

For PDF rendering, use the fpdf2_renderer module:
    from ocrmypdf.fpdf_renderer import Fpdf2PdfRenderer, DebugRenderOptions
    )annotations)HocrParseError
HocrParser)BaselineBoundingBoxFontInfoOcrClass
OcrElement)r   r   r
   r	   r   r   r   N)__doc__
__future__r   "ocrmypdf.hocrtransform.hocr_parserr   r   ocrmypdf.models.ocr_elementr   r   r   r	   r
   __all__     U/var/www/html/qr/venv/lib/python3.12/site-packages/ocrmypdf/hocrtransform/__init__.py<module>r      s%   ( # 
r   