
    TAij                        S r SSKrSSKJr  \S:X  a  \R
                  " SS9r\R                  SSS	S
SS9  \R                  SS\SSS9  \R                  SSSSS9  \R                  SSS9  \R                  SSS9  \R                  5       r
\" \
R                  \
R                  S9r\R                  \
R                  \
R                   S9  gg)zSimple CLI for testing HOCR.    N)HocrTransform__main__zConvert hocr file to PDF)descriptionz-bz--boundingboxes
store_trueFzShow bounding boxes borders)actiondefaulthelpz-rz--resolutioni,  z&Resolution of the image that was OCRed)typer   r	   z-iz--imagez-Path to the image to be placed above the text)r   r	   hocrfilez"Path to the hocr file to be parsed)r	   
outputfilez$Path to the PDF file to be generated)hocr_filenamedpi)out_filenameimage_filename)__doc__argparseocrmypdf.hocrtransformr   __name__ArgumentParserparseradd_argumentint
parse_argsargsr   
resolutionhocrto_pdfr   image     [/var/www/html/land-ocr/venv/lib/python3.13/site-packages/ocrmypdf/hocrtransform/__main__.py<module>r"      s    #  0z$$1KLF
*   5   <	   
)MN
+QRDt}}$//JDKK__zz  7 r    