Source code for pdf2image.exceptions

"""
    Define exceptions specific to pdf2image
"""


[docs]class PopplerNotInstalledError(Exception): """Raised when poppler is not installed""" pass
[docs]class PDFInfoNotInstalledError(PopplerNotInstalledError): """Raised when pdfinfo is not installed""" pass
[docs]class PDFPageCountError(Exception): """Raised when the pdfinfo was unable to retrieve the page count""" pass
[docs]class PDFSyntaxError(Exception): """Raised when a syntax error was thrown during rendering""" pass
[docs]class PDFPopplerTimeoutError(Exception): """Raised when the timeout is exceeded while converting a PDF""" pass