code:def abc():
file_path = ‘aaaa.pdf’
document = ap.Document(file_path)
img_dmc_ids = []
for pdfPage in document.pages:
image_list = pdfPage.resources.images
img_base_path = file_path[:file_path.rfind(‘.pdf’)]
im…...py”, line 30, in abc image.save(outputImage...