I have solved the problem by using wand package.
Example code:
from pdf2image import convert_from_path
from wand.image import Image as WandImage
TIFFPdf = convert_from_path(pdfFileName)
pageNumber = 0
for img in TIFFPdf:
pageNumber = pageNumber + 1
img1 = WandImage()
img1.read(filename='suresh.pdf' + '[' + str(pageNumber) + ']', resolution=300)
img1.compression = 'group4'
img1.save(filename=str(pageNumber) + '.tif')
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…