you can use the Pillow Library to open and work with PDF files code example Example: how to activate pillow format in python how to activate pillow in python