How to detect Image in the PDF file(Python).
I have to detect that image is present in the PDF file or not.
Is there any way to do so.
i have tried PyPdf but not Successful with that. please help me
thanks
any response Appreciated
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is PDFMiner. It also has a Python-API. This can help you searching for images. By using:
layoutis aLTPage-object, which basically is a tree of all layout-objects on a page. You can walk along all branches of this tree and check if there is aLTImage-object somewhere – then you know there’s an image.PDFMiner only works with Python 2.x.