Tried to convert the pdf to an image in colab. It was working fine till yesterday but not working today. Not sure what causes the issue.
from pdf2image import convert_from_path
import glob
pdf_dir = glob.glob(r'/content/first_page.pdf')
img_dir = "/content/"
for pdf_ in pdf_dir:
pages = convert_from_path(pdf_, 57)
pages[0].save('output.'+"jpg", 'JPEG')