microsoft / microsoft/markitdown

It not convert pdf to markdown as expected

Open
#1,117 9 comments 1 reaction 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

Reproduct:

install 'markitdown[all]~=0.1.0a1'

Test with this file Untitled 1.pdf
Untitled 1.pdf

Use this code:

from markitdown import MarkItDown

md = MarkItDown(enable_plugins=False)

result = md.convert('Untitle.pdf')

print(result.text_content)

And it returns

TEST

Hello, how are you?

Table 1: ABC

TT

1 Nội dung abc

2 Nội dung cde

Nội dung

Ghi chú

Ghi chú 1

Ghi chú 2

Trang 1/1

Not as Expected:

#TEST 
Hello, how are you?
**Table 1: ABC** 
|TT|Nội dung|Ghi chú|
|1|Nội dung abc|Ghi chú 1|
|2|Nội dung cde|Ghi chú 2|

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

Reproduce the issue with the attached Untitled 1.pdf and the MarkItDown.convert entry point shown in the report. Compare the returned text_content with the expected headings and table structure; done means the PDF converts to the requested Markdown without the page footer.

Written by the indexing model from the issue text.

Assessment

Tech stack
markdown, python
Domain
content
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.