VedaMD-Backend-v2 / convert_pdf.py
sniro23's picture
VedaMD Enhanced: Clean deployment with 5x Enhanced Medical RAG System
01f0120
raw
history blame contribute delete
258 Bytes
import pymupdf4llm
import pathlib
md_text = pymupdf4llm.to_markdown("/Users/niro/Documents/SL Clinical Assistant/Obs/abc.pdf")
# now work with the markdown text, e.g. store as a UTF8-encoded file
pathlib.Path("output_obs.md").write_bytes(md_text.encode())