# MarkItDown four-file check

On October 15, 2026, we tested MarkItDown 0.1.8 with Python 3.12.13 on Windows 11 in an isolated environment. We installed the PDF, DOCX and XLSX extras. We did not enable an OCR service, LLM or Azure integration. These synthetic files are ours; their product details are fictional. This is a small reproducible check, not an accuracy benchmark.

## Criteria recorded before conversion

| Input | Exact strings checked in the Markdown output |
| --- | --- |
| [Word manual](manual.docx) | `AX-17`, `280 V`, `48 h`, `Do not charge below 0 C` |
| [Two-sheet workbook](catalog.xlsx) | `Specifications`, `AX-17`, `280`, `V`, `Exceptions`, `0 C`, `Do not charge` |
| [Text PDF](manual-text.pdf) | `AX-17`, `280 V`, `48 h`, `Do not charge below 0 C` |
| [Image-only PDF](manual-image.pdf) | `AX-17`, `280 V`, `48 h`, `Do not charge below 0 C` |

We recorded process exit separately from output size and exact-string retention. For the workbook, we also inspected the [raw Markdown](catalog.xlsx.md) manually to check both worksheet headings and the association between numbers and units. The [results table](results.csv) reports all four cases. The [Word output](manual.docx.md) and [text-PDF output](manual-text.pdf.md) are available for inspection. The image-PDF output was zero bytes, so there is no text file to inspect.

The CSV's `output_bytes` column counts LF-normalized UTF-8 text, not a guaranteed download size. Normalized DOCX/XLSX/text-PDF outputs are 149/223/84 bytes. The Windows copies inspected for this run retained CRLF endings and were 160/231/92 bytes; Git checkout or deployment may normalize those endings to LF. The text is equivalent after normalization, and neither byte measure establishes extraction accuracy.

An empty result from the image-only PDF is a failure to extract these fields in this configuration, even though the process exited with code 0. It does not establish how an OCR extension would perform. We did not test competing parsers, complex layouts, production documents or downstream answer quality.

Reproduction note: on October 16, 2026, a fresh isolated environment installed the same pinned dependencies offline and reproduced the four field-retention outcomes. Fresh installation/command/exit-code logs are archived separately; the October 15 records were not backfilled.

## 中文方法说明

2026 年 10 月 15 日，我们在 Windows 11、Python 3.12.13 的独立环境中使用 MarkItDown 0.1.8 转换四份自制文件，启用 PDF、DOCX、XLSX 所需依赖，未调用 OCR 服务、LLM 或 Azure。文件中的产品、型号和参数均为虚构，不含客户资料。2026 年 10 月 16 日使用同一组输入和锁定依赖离线重建环境，复跑得到同样的字段保留结果；这次复跑另存日志，不补写成原试验记录。

### 预先确定的核对内容

| 文件 | 转换后必须核对的原始字符串 | 观察结果 |
| --- | --- | --- |
| [Word 手册](manual.docx) | `AX-17`、`280 V`、`48 h`、`Do not charge below 0 C` | 4/4 保留 |
| [双工作表](catalog.xlsx) | `Specifications`、`AX-17`、`280`、`V`、`Exceptions`、`0 C`、`Do not charge` | 7/7 保留，另人工检查两个工作表及数值与单位对应关系 |
| [文字 PDF](manual-text.pdf) | 与 Word 相同的四个字符串 | 4/4 保留 |
| [纯图像 PDF](manual-image.pdf) | 与 Word 相同的四个字符串 | 0/4，输出为零字节，进程退出码仍为 0 |

转换入口是 `markitdown <输入文件> -o <输出文件.md>`，不是把文件上传到外部服务。我们分别记录进程退出、输出大小、字段保留和错误输出；耗时用 `perf_counter` 测量，仅用于记录本次执行，不作速度排名。[结果 CSV](results.csv) 保留全部四种结果，不能因为某份失败就从记录中删掉。

CSV 的 `output_bytes` 统计 UTF-8 文本在换行统一为 LF 后的字节数，不保证与每个下载文件的磁盘大小相同。Word、工作表、文字 PDF 的规范化输出分别为 149、223、84 字节；本次检查的 Windows 副本保留 CRLF 换行，为 160、231、92 字节。Git 检出或部署时可能改为 LF。规范化后文本一致，不能把字节数当作提取准确率。

[工作表原始输出](catalog.xlsx.md)、[Word 输出](manual.docx.md) 和[文字 PDF 输出](manual-text.pdf.md)可供检查。纯图像 PDF 的输出为空，不能把退出码为 0 解释为识别成功。这个结果只适用于本次配置，不能据此推断 OCR 扩展、其他解析器、复杂版面、生产文档准确率或下游问答质量。
