microsoft / microsoft/markitdown
markitdown-ocr process non-text layer PDFs generate an MD document containing only page numbers
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 186k
- Forks
- 13.7k
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 49
Description
markitdown-ocr process non-text layer PDFs, such as those converted from images or generated through scanning,It will generate an MD document containing only page numbers
the reason is , In the file "pdf_converter_with_ocr.py",first, by "markdown_content.append(f"\n"## Page{page_num}\n)" set a page Message,
but In the subsequent code logic, whether to perform full-page OCR based on whether the content is empty。
Due to the page number information in markdown_content, markdown_content is not empty, so it will skip OCR,finally,generate an MD document containing only page numbers
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in pdf_converter_with_ocr.py and trace how the page heading is appended before the decision to run full-page OCR. Verify the behavior with a non-text-layer PDF and ensure the generated Markdown contains the OCR text rather than only page numbers.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 72/100