unrtf has no way to disable the header that's printed out
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
unrtf (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: unrtf
I created a simple RTF file in OpenOffice with one word "testing". I then used unrtf to convert it to text on the command line like so:
unrtf -t text test.rtf 2>/dev/null
(Note the 2>/dev/null is to work around LP #489122)
this is output I got:
### Translation from RTF performed by UnRTF, version 0.19.2
### For information about this marvellous program,
### please go to http://
### document uses ANSI character set
### font table contains 4 fonts total
AUTHOR: Rory McCann
### creaton date: 27 November 2009 09:54
### revision date:
### last printed:
### comments: StarWriter
-----------------
testing
The stuff before the "----------" is header stuff about the file, it is not in the RTF file itself. There should be a way to turn this off. I, the user, want to get the plain text equivilant of this file, all these #### lines are not in the original file, so there should be some other way to just get What You See In OpenOffice.
ProblemType: Bug
Architecture: i386
Date: Fri Nov 27 09:59:38 2009
DistroRelease: Ubuntu 9.10
Package: unrtf 0.19.3-1.1
ProcEnviron:
PATH=(custom, user)
LANG=en_IE.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: unrtf
Uname: Linux 2.6.31-15-generic i686
XsessionErrors:
(gnome-
(gnome-
(nautilus:2067): Eel-CRITICAL **: eel_preferences
(polkit-
(gnome-
Changed in unrtf (Ubuntu): | |
status: | New → Confirmed |
Hi.
I use unrtf in a project with Lucene and Zend framework.
To throw away the header part, i use this workaround:
unrtf --text --nopict filename.rtf | awk 'NR == 1, /-----------------/ { next } { print }' > outfile