first commit
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user