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

Đang mở
#2,918 7 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@Techsynx đang làm issue này rồi.

Từ ngày 25/11/2026.

  • #2919 của @Techsynx — đang mở

Đánh giá

Độ khó
4/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
20/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
tooling

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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]

Ngôn ngữ chính
Python
Star
198k
Fork
15k
Merge trung bình
2 giờ 16 phút
Pull request đã merge (30 ngày)
9

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoft/markitdown

Tất cả issue của microsoft/markitdown

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.