pdf2image icon indicating copy to clipboard operation
pdf2image copied to clipboard

How to get an Image object ?

Open Laxmi530 opened this issue 2 years ago • 1 comments

Hai, Thank you for providing such a beautiful library. I have gone through the PyPi site and github README.MD file. I wanted to convert pdf into an image and wanted to store the image into a variable as an object not in memory. When we check the variable type, it should return <class 'PIL.Image.Image'>. Can someone please guide me how to do.

Thanking you in advance.

Laxmi530 avatar Nov 03 '22 13:11 Laxmi530

All the APIs in pdf2image will return a list of PIL Image object. If you follow the example in the README.md you should get exactly what you want.

Hope that helps.

Belval avatar Nov 04 '22 17:11 Belval