microsoft / microsoft/markitdown

Differences in conversion between docx and pdf for the same content

Open
#213 0 comments 4 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

Hi,
It might be normal behavior, but it seems that markitdown fails to convert a table within a PDF file but is successful with the same content in a docx.

Config:
- python=3.11
- markitdown=0.0.1a3

Image

The corresponding files are as follows:
test.docx > output_docx.md

test.pdf > output_pdf.md

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 by reproducing the conversion with the attached test.docx and test.pdf files, then compare output_docx.md with output_pdf.md to isolate the missing table content. Trace the PDF conversion path and add coverage for this input; done means the PDF conversion preserves the table content represented in the DOCX output.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.