Test cases / doc

deft doc info

Title, author, words, headings, tables, images

1 run on real files, 2 tests on generated files, not shown. 0 failed.

Fixed cases

Generated files, compared with ground truth by tools other than deft.

real Word filePassed

It must print words.

deft doc info demo.docx --json

The files are not kept here, because demo.docx is under GPL-3.0. Its source is linked.

Input

No input file.

Output

No output file. The result is what it printed.

What it printed
{"v":1,"ok":true,"op":"doc.info","items":[{"ok":true,"inputs":["demo.docx"],"outputs":[],"facts":{"title":"DOCX Demo","author":"Kovid Goyal","words":1630,"paragraphs":56,"headings":17,"tables":5,"images":3},"warnings":[]}],"elapsed_ms":6}