1831645 Members
3420 Online
110029 Solutions
New Discussion

RTF2PS

 
Osama88
Occasional Advisor

RTF2PS

Does anyone know of a tool that can convert RTF2PS properly.

Ted4.3g found in software.hp.com does not seem to work. Please help
1 REPLY 1
Ceesjan van Hattum
Esteemed Contributor

Re: RTF2PS

Hi,
Have a look at http://www.nllgg.nl/Ted/index.html were i also found a 'rtf2ps' shellscript which uses Ted:

#!/bin/sh

########################################################################
#
# Convert an rtf document to PostScript format using 'Ted'.
#
# Usage rtf2ps.sh --paper paper something.rtf something.ps
# Or rtf2ps.sh something.rtf something.ps
#
# This is an example. Refer to http://www.nllgg.nl/Ted/index.html for the
# 'Ted' documentation.
#
########################################################################

PAPER=

case $# in
2)
;;
4)
case $1 in
--paper)
;;
*)
echo $0: '$1='$1
exit 1
;;
esac
case $2 in
a4|a5|a6|letter|legal|executive)
PAPER=$2
;;
*)
echo $0: '$2='$2
exit 1
;;
esac
shift; shift;
;;
*)
echo $0: '$#='$#
exit 1
;;
esac


case $PAPER in
?*)
Ted ++printToFilePaper $1 $2 $PAPER
;;
*)
Ted ++printToFile $1 $2
;;
esac

Regards,
Ceesjan