Hi @MRAB,
Thank you for your amazing code!
I obtain the following error when trying to replicate your code:
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
Cell In[16], line 443
440 with open(tsv_path, "w", encoding="utf-8") as file:
441 file.writelines(rows)
--> 443 App().mainloop()
Cell In[16], line 188, in App.__init__(self)
185 self.bind("<F12>", self.on_extract_page)
186 self.bind("<Shift-F12>", self.on_extract_upto_page)
--> 188 self.config_path = splitext(__file__)[0] + ".json"
189 self.load_config()
191 self.pdf_path = None
NameError: name '__file__' is not defined
Could you give me any insight about that, please?
Thank you in advance for your help!