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 have downloaded a book from archive in .pdf format. Write the below code:
#md = MarkItDown(use_azure=False) # Important: set this flag
md = MarkItDown(use_azure=False, ocr_mode=True)
<!-- Failed to upload "Bharater-Shilpa-sanskritir.pdf" -->
<!-- Failed to upload "Bharater-Shilpa-sanskritir.pdf" -->
file_path = "E:/NLP/Bengali LLM all/DATA/Bharater-Shilpa-sanskritir.pdf"
result = md.convert(file_path)
# Save to .md file
with open("output.md", "w", encoding="utf-8") as f:
f.write(result.text_content)
print("Markdown saved as output.md")
The output file size is 0 kb.
The input file link is : [(https://archive.org/details/in.ernet.dli.2015.266550/page/n135/mode/2up)]
I have downloaded the pdf version.
The text was updated successfully, but these errors were encountered:
I have downloaded a book from archive in .pdf format. Write the below code:
The output file size is 0 kb.
The input file link is : [(https://archive.org/details/in.ernet.dli.2015.266550/page/n135/mode/2up)]
I have downloaded the pdf version.
The text was updated successfully, but these errors were encountered: