See www.tristancollins.me/computing/ocr-using-tesseract-on-multipage-pdfs/
You can setup nested for loops, outer one for folders for the books and the inner one to handle the pages within the book.
- sent from my phone. excuse the brevity.
- sent from my phone. excuse the brevity.