I recently came across this plugin from PyMuPDF (https://stackabuse.com/working-with-pdfs-in-python-reading-and-splitting-pages/) that helps identify text within a document which ran great.
#!/usr/bin/python
import fitz
filename = "MyPDF.pdf"
search_term = "Test"
pdf_document = fitz.open(filename);
for current_page in range(len(pdf_document)):
page = pdf_document.loadPage(current_page)
if page.searchFor(search_term):
print("%s found on page %i" % (search_term, current_page))
So this helped kickback a list of which pages "Test" is found. I was wondering if there's a way to incorporate this with another module like
![[photos] My first keycap set! Quickfire Rapid](/api/ImgurImages?id=shTm8ya.jpg)