first commit

This commit is contained in:
2026-07-01 15:54:05 +07:00
commit 2a131fc7a6
3 changed files with 12 additions and 0 deletions
View File
+12
View File
@@ -0,0 +1,12 @@
import fitz
pdf_path = "ĐỀ ÁN CẢI TIẾN CHẤT LƯỢNG PHÒNG CÔNG NGHỆ THÔNG TIN NĂM 2025.pdf"
doc = fitz.open(pdf_path)
text = ""
for page in doc:
text += page.get_text()
print(f"Extracted {len(text)} characters using PyMuPDF.")
with open("extracted_text.txt", "w", encoding="utf-8") as f:
f.write(text)