HEX
Server: Apache
System: Linux srv1.prosuiteplus.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: prosuiteplus (1001)
PHP: 8.3.20
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/ocrmypdf/__pycache__/exceptions.cpython-38.pyc
U

��Z^��@s�ddlmZddlmZGdd�de�ZGdd�de�ZGdd�de�ZGd	d
�d
e�ZGdd�de�Z	Gd
d�de�Z
Gdd�de�ZGdd�de�ZGdd�de�Z
Gdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZdS)�)�IntEnum)�dedentc@s@eZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZd
ZdS)�ExitCoder���������	�
��N)�__name__�
__module__�__qualname__�ok�bad_args�
input_file�missing_dependencyZinvalid_output_pdf�file_access_error�already_done_ocr�child_process_error�
encrypted_pdf�invalid_configZpdfa_conversion_failed�other_errorZctrl_c�rr�5/usr/lib/python3/dist-packages/ocrmypdf/exceptions.pyrsrcs&eZdZejZdZ�fdd�Z�ZS)�ExitCodeException�cs t���}|jr|j�|�S|S)N)�super�__str__�message�format)�selfZ	super_msg��	__class__rrr#+s
zExitCodeException.__str__)	rrrrr�	exit_coder$r#�
__classcell__rrr'rr 'sr c@seZdZejZdS)�BadArgsErrorN)rrrrrr)rrrrr+2sr+c@seZdZejZed�ZdS)�PdfMergeFailedErrora!        Failed to merge PDF image layer with OCR layer

        Usually this happens because the input PDF file is malformed and
        ocrmypdf cannot automatically correct the problem on its own.

        Try using
            ocrmypdf --pdf-renderer sandwich  [..other args..]
        N)rrrrrr)rr$rrrrr,6s�r,c@seZdZejZdS)�MissingDependencyErrorN)rrrrrr)rrrrr-Esr-c@seZdZejZdS)�UnsupportedImageFormatErrorN�rrrrrr)rrrrr.Isr.c@seZdZejZdS)�DpiErrorNr/rrrrr0Msr0c@seZdZejZdS)�OutputFileAccessErrorN)rrrrrr)rrrrr1Qsr1c@seZdZejZdS)�PriorOcrFoundErrorN)rrrrrr)rrrrr2Usr2c@seZdZejZdS)�InputFileErrorNr/rrrrr3Ysr3c@seZdZejZdS)�SubprocessOutputErrorN)rrrrrr)rrrrr4]sr4c@seZdZejZed�ZdS)�EncryptedPdfErrora/        Input PDF is encrypted. The encryption must be removed to
        perform OCR.

        For information about this PDF's security use
            qpdf --show-encryption infilename

        You can remove the encryption using
            qpdf --decrypt [--password=[password]] infilename
        N)rrrrrr)rr$rrrrr5as�r5c@seZdZejZdZdS)�TesseractConfigErrorz;Error occurred while parsing a Tesseract configuration fileN)rrrrrr)r$rrrrr6qsr6N)�enumr�textwraprr�	Exceptionr r+r,r-r.r0r1r2r3r4r5r6rrrr�<module>s