How to use the pdf2image.exceptions.PopplerNotInstalledError function in pdf2image

To help you get started, we’ve selected a few pdf2image examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Belval / pdf2image / pdf2image / exceptions.py View on Github external
"""
    Define exceptions specific to pdf2image
"""


class PopplerNotInstalledError(Exception):
    """Happens when poppler is not installed"""

    pass


class PDFInfoNotInstalledError(PopplerNotInstalledError):
    """Happens when pdfinfo is not installed"""

    pass


class PDFPageCountError(Exception):
    """Happens when the pdfinfo was unable to retrieve the page count"""

    pass


class PDFSyntaxError(Exception):
    """Syntax error was thrown during rendering"""

    pass