Rob van der Woude's Scripting Pages

Help text for ODT2Txt.cs

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

ODT2Txt.exe,  Version 1.00
Return plain text content of an OpenOffice file without requiring OpenOffice

Usage:    ODT2Txt.exe  odtfile  [ encoding | /D ]

or:       ODT2Txt.exe  /E

Where:    odtfile      is the path of the OpenOffice file to be read
                       (no wildcards, only .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
https://www.robvanderwoude.com

page last uploaded: 2020-03-25