Measurement note: markitdown 0.1.9 convert() on DOCX headers/footers, rotated PDF pages and 8-bit text

Aperta
#2,918 7 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@Techsynx ci sta già lavorando.

Dal 25/11/2026.

  • #2919 di @Techsynx — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
Più di una settimana
Idoneità per principianti
20/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
python
Ambito
tooling

Direzione di ricerca

Start from MarkItDown().convert() in the package entry point and follow the DOCX and PDF converters, which wrap python-docx and pdfminer.six; the rotation finding suggests looking at how LAParams are constructed in the PDF converter. Reproduce with the reporter's constructed files or your own rotated-header DOCX/PDF samples before changing anything. "Done" here is a decision plus either a fix or a documented limitation; the issue asks for correction, not a specific code change.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Hello,

I am writing before releasing a short measurement note. These may be intended; I am flagging them in case they are not.

Version: markitdown 0.1.9 (pdfminer.six 20260107), Python 3.12.13, macOS. Call: MarkItDown().convert(path).text_content, defaults. Constructed files, 20 seeds. No exception below.

  • DOCX headers and footers: 20 of 20 runs lacked them (recall 0.82); body complete.
  • PDF with rotation entries of 90, 180 or 270 on some pages: 15 of 20 runs lost words (recall 0.61). The five files returned in full are those where every page is rotated 90 degrees. On one page rotated by 90 degrees, standalone pdfminer.six gave recall 0.00 with default LAParams and 1.00 with detect_vertical=True; I did not isolate the cause.
  • Latin-1, cp1252 and mixed text: 7 of 60 runs lost tokens (recall 0.97 over the 60).

A PDF cut at 50-70% of its bytes raised in 20 of 20 runs. PPTX (notes included), DOCX body and tables, plain PDFs and HTML were returned in full.

A short note describing these measurements will be posted on arXiv, with a public test-file bundle (link to follow). Please tell me of any correction before it is cited.

Adam Faust
MOBLUEHQ, Inc.
[email protected]

Lingua principale
Python
Stelle
198k
Fork
15k
Merge medio
2h 16m
PR unite (30g)
9

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/markitdown

Tutte le issue di microsoft/markitdown

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.