You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to extract the contents of pdf. But it is extracting as plain text, not as markdown. Am I missing any parameter?
from markitdown import MarkItDown
md = MarkItDown()
result = md.convert("microsoft_report.pdf")
print(result.text_content)
output_file = "output.md"
with open(output_file, "w", encoding="utf-8") as file:
file.write(result.text_content)
print(f"Markdown content has been written to {output_file}")
The text was updated successfully, but these errors were encountered:
I tried to extract the contents of pdf. But it is extracting as plain text, not as markdown. Am I missing any parameter?
from markitdown import MarkItDown
md = MarkItDown()
result = md.convert("microsoft_report.pdf")
print(result.text_content)
output_file = "output.md"
with open(output_file, "w", encoding="utf-8") as file:
file.write(result.text_content)
print(f"Markdown content has been written to {output_file}")
The text was updated successfully, but these errors were encountered: