This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Extract highlighted text from PDFs in the given dir and its subdirs and save them | |
to text files with the same name as the PDFs, except with a .txt extension. | |
Tested with Python 3.10.4 and PyMuPDF==1.24.7 | |
Created with the help of BingAI and various Stackoverflow and GitHub answers. | |
usage: extract_pdf_highlights.py [-h] dirname |