Convert DOCX, PPTX, and XLSX to Markdown
On this page
- Convert Office documents to Markdown Preview
- What's measured, per format Preview
Office to Markdown in PDFluent SDK 1.1.0
# Rust
cargo add pdfluent@1.5.1
# Python
pip install pdfluent==1.5.0
# Node.js
npm install @pdfluent/nodeConvert Office documents to Markdown Preview
import pdfluent
markdown = pdfluent.extract_office("deck.pptx")
docling_json = pdfluent.extract_office("sheet.xlsx", format="docling")- Step 1
DOCX to Markdown
Headings, paragraphs, lists, and tables in a .docx file map to their Markdown equivalents.
- Step 2
PPTX to Markdown
Slide text and titles map to Markdown; table structure and cell-level TEDS accuracy are not covered for PPTX (see the accuracy note below) — PPTX is evaluated on text, words, headings, heading levels, lists, and reading order, not tables.
- Step 3
XLSX to Markdown
Sheets map to Markdown tables. Word-level accuracy is not evaluated for XLSX (see the accuracy note below) — XLSX is evaluated on headings, tables, and table structure.
- This is a Preview capability: output quality is still improving and the API may change in a minor release. No comparison or "as good as" claim is made about the Markdown conversion step itself.
- The per-format accuracy scope below (what is and isn't measured) comes directly from PDFluent's internal claims register and is intentionally format-specific — a result measured for DOCX tables does not imply anything about PPTX tables, which are not measured.
- Can I convert a DOCX file to Markdown with PDFluent today?
- Yes. In Python, pdfluent.extract_office(path_or_bytes, format="markdown") takes .docx, .pptx, and .xlsx. This is a Preview capability: output quality is still improving and the API may change in a minor release. PDFluent can also export a PDF to DOCX/XLSX/PPTX, which is the opposite direction.
- Does the Markdown conversion work on scanned Office documents or scanned-to-PDF-to-HTML pipelines?
- No. Like PDF text extraction, this works on documents with real text content (DOCX paragraphs, XLSX cells, PPTX text frames), not on rasterized/scanned content. Run OCR first if your source is scanned.
What's measured, per format Preview
- Step 1
DOCX: claim ID A31
DOCX extraction is at least as good as Docling 2.132.0 on text, words, headings, heading levels, list levels, tables, TEDS, and coverage (93 public DOCX files from 23 websites; 95% confidence interval across websites). [CLAIMS.md A31, as of 2026-10-04]
- Step 2
PPTX: claim ID A32
PPTX extraction is at least as good as Docling 2.132.0 on text, words, headings, heading levels, lists, and reading order (68 PPTX files, 20 websites); tables and TEDS are explicitly not covered by this claim. [CLAIMS.md A32, as of 2026-10-04]
- Step 3
XLSX: claim ID A33
XLSX extraction is at least as good as Docling 2.132.0 on headings, tables, and TEDS (93 XLSX files, 25 websites); word-level accuracy is explicitly not covered by this claim. [CLAIMS.md A33, as of 2026-10-04]
- Step 4
HTML: claim ID A34
For HTML, lists and tables are at least as good as Docling 2.132.0 (50 pages, 26 websites; the table lower bound is exactly 0.000 — i.e. not every table beats the baseline). Text and coverage are explicitly not covered by this claim, because the ground truth likely contains boilerplate that has not yet been checked. [CLAIMS.md A34, as of 2026-10-04]
- These claims are dated (status DATED in CLAIMS.md): they held on the measurement date shown, not necessarily today. Re-check CLAIMS.md before repeating any of these numbers elsewhere.
- None of these claims cover the Markdown conversion step itself — they cover the underlying DOCX/PPTX/XLSX/HTML extraction quality that the Preview conversion is built on.
- Does the DOCX claim (A31) also apply to PPTX?
- No. Each claim ID is scoped to one format and a specific set of metrics. A31 (DOCX) and A32 (PPTX) were measured separately, on different corpora, and A32 explicitly excludes tables and TEDS, which A31 includes.
- What does "at least as good as Docling" mean here?
- It means PDFluent's extraction met or exceeded Docling 2.132.0 on the specific metrics and corpus described in the claim, as measured on the stated date. It is not a general statement about every document or every metric, and it does not extend to the Preview Office-to-Markdown conversion feature unless that feature itself has been measured and registered with its own claim ID.