Spaces:
Sleeping
Sleeping
File size: 258 Bytes
19aaa42 |
1 2 3 4 5 6 7 8 |
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())
|