unable to extract images from a loop #1084
Unanswered
BivashChakraborty
asked this question in
Looking for help
Replies: 2 comments
-
This is the pdf file I am working on |
Beta Was this translation helpful? Give feedback.
0 replies
-
Never mind. I figured it out. Thank you |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey Jorj!
I am an noob programmer trying to build my skills by doing small projects. So this one involves extracting a certain subquestion from an exam paper.
I am trying to extract a subquestion if the next subquestion exists on that page itself. For some reason, the function only returns the image of the last loop. If I break the first loop at the first iteration itself, then it gives me the image but that doesn't really solve my problem.
I'm pretty sure, I'm missing something very basic and would be very happy if you could help me.
Thank you.
The code is pasted below.
def get_subquestions(ques_dict):
total_pages = pdf.chapter_page_count(0)
Beta Was this translation helpful? Give feedback.
All reactions