Rob van der Woude's Scripting Pages

Help text for Rtf2Txt.cs

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

Rtf2Txt.exe,  Version 1.00
Return the plain text content of a Rich Text Format (.RTF) file

Usage:    Rtf2Txt.exe   rtffile  [ encoding ]

or:       Rtf2Txt.exe   /E

Where:    rtffile       is the path of the file to be read
                        (no wildcards, only .rtf extension allowed)
          encoding      is the output encoding, e.g. UTF-8 to preserve
                        Unicode characters, or IBM437 to convert Unicode
                        doublequotes to ASCII
          /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.
          Return code ("errorlevel") 1 in case of errors, 0 on success.

Credits:  Use hidden RichTextBox to convert RTF to plain text by Wendy Zang
          https://social.msdn.microsoft.com/Forums/vstudio/en-US
          /6e56af9b-d7d3-49f3-9ec4-80edde3fe54b/reading-modifying-rtf-files
          ?forum=csharpgeneral#a64345e9-cfcb-43be-ab18-c08fae02cb2a

Written by Rob van der Woude
https://www.robvanderwoude.com

page last uploaded: 2022-10-05; loaded in 0.0050 seconds