microsoft / microsoft/markitdown

markitdown-ocr process non-text layer PDFs generate an MD document containing only page numbers

Open Beginner friendly
#1,863 0 comments 5 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.