Author - Delta0001#8468
Code hosted on GitHub at Question-Extractor
-
Make sure that you have installed everything in
requirements.txt
. Please set-uppoppler
using these instructions -
Run
code.py
(please prefer using an IDE over terminal here as windows terminal was sometimes not takingCtrl+C
while code was running) -
Tkinter window will open.
First you will have to choose saving location
for generated pictures.
Then you'll get to select file. Both .png
and .pdf
are accepted.
Main image is under Current Question
on which operations below are going to be performed.
-
Skip.
- To skip
Current Question
- To skip
-
Save
- To save
Current Question
- To save
-
Start Merge
- When you see the
Next Question
should be merged withCurrent Question
start merge.
- When you see the
Update - Now that you can manually set Q No.
you can use 3rd command for both 3 and 4 and then change numbers manually, in case it's unclear when to use 3 and 4, use 3 and adjust.
-
Skip While Merging.
- To skip
Current Question
but continue merging,Current Merge
remains same.
- To skip
-
Save End Merge
- To save
Current Question
and endCurrent Merge
. Closely related to 5.
- To save
-
Merge Same
- When you want to merge
Current Question
toCurrent Merge
but not changeQ No.
. Like suppose there is a paragraph from q1-4 and before q1 there is paragraph statement. So when paragraph statement isCurrent Question
then you'llStart Merge
and whenq1
isCurrent Question
then you will use this command to merge statement and q1.
- When you want to merge
-
Merge Next
- Continuing last example, after you have used
Start Merge
andMerge Same
, yourCurrent Merge
is comprised ofstatement-q1
. Now when q2 isCurrent Question
, use this command to merge q2 withCurrent Merge
and increaseQ No.
- Continuing last example, after you have used
-
Skip End Merging.
- To skip
Current Question
and saveCurrent Merge
. In the pervious example, after you have mergedstatement-q1-q2-q3-q4
and next image has to be skipped, use this.
- To skip
In case you need to change Q No.
(note that it's the next question number to be saved), you can use Q Inc
to increase and Q Dec
to decrease. Make sure that when you are saving multiple merged questions, Q No.
is the last question number of the merged qns.
-
I know that
While Not Merging
command appears a bit complicated but after 2-3 uses you will be comfortable -
Last <x>
just keeps track of last button pressed. -
pdf2image
is a bit slow, suggest me new libraries. -
Make sure the program successfully terminates in-case you close the
Tkinter
window in between. It's kinda wack.