Discussion:
RTF printing?
Niels S. Eliasen
2011-01-18 13:50:44 UTC
Permalink
hi guys
I am having the bizarre problem that printing a RTF file leads to
all the escape-codes etc etc gets printed... But I would just like
the "nicely" formatted RTF file to be printed....
Is there a rtf2whatever filter?? or do I need to muck about with
the mime.types ??

tia
--
kind regards/mvh
niels
Helge Blischke
2011-01-18 15:43:11 UTC
Permalink
Post by Niels S. Eliasen
hi guys
I am having the bizarre problem that printing a RTF file leads to
all the escape-codes etc etc gets printed... But I would just like
the "nicely" formatted RTF file to be printed....
Is there a rtf2whatever filter?? or do I need to muck about with
the mime.types ??
tia
Look at

http://www.nllgg.nl/Ted/

Part of that package is a script that converts RTF to PostScript.
For use as a CUPS filter, the script would need a slight modification
concerning the command line options and output to stdout.

Questions left?

Helge
Helge Blischke
2011-01-21 15:13:26 UTC
Permalink
Post by Niels S. Eliasen
hi guys
I am having the bizarre problem that printing a RTF file leads to
all the escape-codes etc etc gets printed... But I would just like
the "nicely" formatted RTF file to be printed....
Is there a rtf2whatever filter?? or do I need to muck about with
the mime.types ??
tia
A simpler and, as for the results, much better approach:

(1) get the filter officetops from the links at www.cups.org
and install it according to the documentation (unless it is already
part of your CUPS installation).
(2) add

text/rtf rtf string(0,"{\rtf")

to any of your xxx.types file

and

text/rtf application/postscript 50 officetops

to any of your xxx.convs file.

OpenOffice will render rtf documents a lot better than any other solution
I've come about since ma last post.

Helge

P.S.: This son't work on MacOS X 10.5 or higher with the precompiled binary
of OOo, as this does not provide configuring a "default printer" aside from the
built-in CUPS interface.
Helge Blischke
2013-02-09 15:29:25 UTC
Permalink
Post by Helge Blischke
Post by Niels S. Eliasen
hi guys
I am having the bizarre problem that printing a RTF file leads to
all the escape-codes etc etc gets printed... But I would just like
the "nicely" formatted RTF file to be printed....
Is there a rtf2whatever filter?? or do I need to muck about with
the mime.types ??
tia
(1) get the filter officetops from the links at www.cups.org
and install it according to the documentation (unless it is already
part of your CUPS installation).
(2) add
text/rtf rtf string(0,"{\rtf")
to any of your xxx.types file
and
text/rtf application/postscript 50 officetops
to any of your xxx.convs file.
OpenOffice will render rtf documents a lot better than any other solution
I've come about since ma last post.
Helge
P.S.: This son't work on MacOS X 10.5 or higher with the precompiled
binary of OOo, as this does not provide configuring a "default printer"
aside from the built-in CUPS interface.
... you better use the libreofficetopdf or libreofficetops filter.

Helge

Continue reading on narkive:
Loading...