| 12345678910111213141516171819 |
- import os
- import glob
- import fitz
- docs_dir = r"c:/Users/lanfr144/Documents/DOPRO1/Antigravity/Food/docs"
- pdf_files = glob.glob(os.path.join(docs_dir, "*.pdf"))
- for pdf_file in pdf_files:
- try:
- doc = fitz.open(pdf_file)
- found = False
- for page_idx, page in enumerate(doc):
- text = page.get_text()
- if "∕" in text:
- print(f"Found math slash in {os.path.basename(pdf_file)} on page {page_idx + 1}")
- found = True
- doc.close()
- except Exception as e:
- print(f"Error checking {pdf_file}: {e}")
|