Skip to content

Office documents

Office files never go through OCR. Deskew reads them directly with the office engine, which is fast, exact and cheap. The trade-off is that only what the file format stores is available; nothing is rendered or inferred from layout.

Terminal window
curl https://api.deskew.dev/v1/extract \
-H "Authorization: Bearer $DESKEW_API_KEY" \
-F "file=@quarterly.xlsx" \
-F "output=json"

One page for the whole document (kind: "digital"), 1 credit.

Preserved Not preserved
Body paragraphs in order Page breaks and page numbers (there are no pages in a DOCX)
Heading levels from the Heading 1…9 and Title styles Visual formatting such as bold, italic, colour
List items (style-based and numbered) Footnotes, comments, tracked changes
Tables, including horizontally merged cells Text boxes and shapes
Header and footer text of the first section Embedded images (counted in meta.images, not extracted)

One page per worksheet (kind: "sheet"). Each sheet becomes one table plus a level-2 heading with the sheet name. Cell values are read as calculated values, not formulas. Whole-number floats are written without a decimal point; everything else is the cell’s string form, so dates arrive as 2026-03-01 00:00:00.

  • Empty rows are skipped and trailing empty columns trimmed.
  • Sheets are truncated at 20,000 rows and 200 columns; a truncated sheet adds a warning.
  • Credits: 1 per 50 rows per sheet, minimum 1 per sheet.
  • Merged cells, styles, charts, pivot caches and macros (.xlsm is accepted, macros ignored) are not represented.

One page, one table. The delimiter is sniffed from the first 8 KB (, ; tab |), the text is decoded as UTF-8 with BOM handling, and rows are capped at 20,000. Billed like a sheet: 1 credit per 50 rows.

One page per slide (kind: "slide"), 1 credit each.

Preserved Not preserved
Text frames in slide order, titles as headings Animations, transitions
Tables as tables Charts and SmartArt content
Pictures as figure blocks with a bounding box The picture itself
Speaker notes, appended to the slide Markdown as a quoted Speaker notes: line

Slides are the one Office format where blocks have bounding boxes, computed from shape positions relative to the slide size.

.doc, .xls and .ppt are not supported and return 415 legacy_office_unsupported. Save as .docx / .xlsx / .pptx or export to PDF.

ZIP archives are rejected (415 unsupported_type); send one document per request.