Read a Word documentPassed
Extract the text of letter.docx into letter.txt.
deft doc to-text letter.docx -o letter.txt
Input
letter.docx 11.3 KB

Rendered by macOS Quick Look, first page
Text inside
I am a test document This is page 1 I am Calibri (Body) in font size 11 This is page two It’s Arial Black in 16 point It’s also in blue
Output
letter.txt 147 B
I am a test document This is page 1 I am Calibri (Body) in font size 11 This is page two It’s Arial Black in 16 point It’s also in blue
Automatic checks (1)
- text: file = "letter.txt", contains = ["This is page two"]