diff --git a/camelot/handlers.py b/camelot/handlers.py index d50f313..6820cc7 100644 --- a/camelot/handlers.py +++ b/camelot/handlers.py @@ -26,7 +26,7 @@ class PDFHandler(object): """ def __init__(self, filename, pages='1'): self.filename = filename - if not self.filename.endswith('.pdf'): + if not filename.lower().endswith('.pdf'): raise NotImplementedError("File format not supported") self.pages = self._get_pages(self.filename, pages)