Reading RTF files

Reading RTF files

Micha Silver micha at arava.co.il
Fri Jul 10 09:38:45 IDT 2009


Ehud Karni wrote:

>
> I use `catdoc' which works quiet good (for both *doc and *rtf).
> `catdoc' is available as a package for Centos and Debian.
> Here is a script I use:
>
>
> catdoc -d8859-8 "$1" | \
> fribidi --charset ISO8859-8 --width 90 --rtl > "${1}_h_txt"
> nohup xmessage \
>    -background yellow -foreground Black -center    \
>    -file "${1}_h_txt" -title "$1" -xrm "$1.Scroll:whenNeeded"  \
>    -font "-misc-fixed-medium-r-normal--13-120-75-75-c-80-iso8859-8" \
>    -buttons "$SPC E x i t $SPC ס י ו ם $SPC" > /dev/null &
> sleep 1                                # allow xmessage to start
> rm "${1}_h_txt"                        # remove if not used
>
>
> Ehud.
>
>
>
>   
Ehud:
Thanks for the tip, but I can't get any sensible output. I ran:

 catdoc -a -d8859-8 invoice150711.rtf | fribidi --charset ISO8859-8 
--width=80 --rtl

and I get 188 empty lines. :-(
Am I missing something?

Regards,
Micha

> --
>  Ehud Karni           Tel: +972-3-7966-561  /"\
>  Mivtach - Simon      Fax: +972-3-7976-561  \ /  ASCII Ribbon Campaign
>  Insurance agencies   (USA) voice mail and   X   Against   HTML   Mail
>  http://www.mvs.co.il  FAX:  1-815-5509341  / \
>  GnuPG: 98EA398D <http://www.keyserver.net/>    Better Safe Than Sorry
>
> This mail was received via Mail-SeCure System.
>
>
>   




More information about the Linux-il mailing list