from PIL import Image # Open the pdf file with Image.open("input.pdf") as im: # Iterate over all pages for i in range(0, im.n_frames): # Set the current page im.seek(i) # Save the current page as a png im.save("output_{}.png".format(i), "png")

Commentaires

Articles les plus consultés