Rob van der Woude's Scripting Pages

Help text for Docx2Txt.cs

(view help text of Docx2Txt.cs as plain text)

Docx2Txt.exe,  Version 1.01
Return the plain text content of a Word .DOCX or OpenOffice .ODT file
without requiring Word or OpenOffice

Usage:    Docx2Txt.exe  docfile  [ encoding | /D ]

or:       Docx2Txt.exe  /E

Where:    docfile       is the path of the file to be read (no wildcards,
                        only .docx and .odt extension allowed)
          encoding      is the output encoding, e.g. UTF-8 to preserve
                        Unicode characters, or IBM437 to convert Unicode
                        doublequotes to ASCII
          /D            use the encoding specified in the document file
          /E            list all available encodings

Notes:    If the specified encoding does not match any available encoding
          name, the program will try again, ignoring dashes; if that does
          not provide a match, the program will try matching the specified
          encoding with the available encodings' codepages.
          This program requires .NET 4.5.
          Return code ("errorlevel") 1 in case of errors, 0 on success.

Written by Rob van der Woude

page last uploaded: 2020-03-25, 23:10