How to specify dpi of output jpg with pdf2image?
You can specify the dpi of output jpg convert_from_path method by passing a second argument of DPI like this
from pdf2image import convert_from_path
pages = convert_from_path('sample.pdf', 400) #400 is the Image quality in DPI (default 200)
pages[0].save("sample.png")
Source: stackoverflow: converting pdf to image but after zooming in