Re: Using Abiword for conversions

From: Dave Wood <dave_at_unrealize.co.uk>
Date: Fri Jan 02 2009 - 11:38:46 CET

On (11:13 24/12/08), Martin Sevior <msevior@gmail.com> put forth the proposition:
>
>On Wed, Dec 24, 2008 at 10:36 AM, Dave Wood <dave@unrealize.co.uk> wrote:
>>
>> On (15:04 23/12/08), Dominic Lachowicz <domlachowicz@gmail.com> put forth
>> the proposition:
>>>
>>> On Tue, Dec 23, 2008 at 2:58 PM, Steffan A. Cline <steffan@hldns.com>
>>> wrote:
>>>>
>>>> I've been looking for a command line tool to convert word docs to ps or
>>>> pdf
>>>> that I can then pump into ghostscript to produce jpegs. I had used
>>>> antiword
>>>> some time ago but it does not support UTF-8 with ps or pdf.
>>>>
>>>> Does abiword allow it to be used in this means? Can it take a command
>>>> line
>>>> argument to convert a document?
>>>
>>> Yup, a lot of work has been put into this (as well as using AbiWord as
>>> a print server). The syntax is something like:
>>>
>>> abiword --to=pdf file.doc
>>
>> This is interesting. I've been looking for some way of making rtf from
>> console so I imagine taking a plain text file made with Vim and then doing
>> abiword --to=rtf file.txt would work?
>>
>abiword --to=rtf file.txt
>
>Yes. That will work. If you want to convert to *.odt simply do:
>abiword --to=odt file.doc

I've started to look at this a bit more and noticed that there are -i and -e
options available. It says CSS string so I take it this is like CSS for
web? I tried doing something like

abiword -t rtf -e "* { font-family: courier }" test.txt

but this didn't seem to work. I can sort of hackishly change font with sed
but I would like to be able to change font and line spacing (double) if
possible.

Is this possible?

>etc etc
>-----------------------------------------------
>To unsubscribe from this list, send a message to
>abiword-user-request@abisource.com with the word
>unsubscribe in the message body.

-- 
"An anthropologist at Tulane has just come back from a field trip to
New Guinea with reports of a tribe so primitive that they have Tide but
not new Tide with lemon-fresh Borax."
		-- David Letterman
-----------------------------------------------
To unsubscribe from this list, send a message to
abiword-user-request@abisource.com with the word
unsubscribe in the message body.
Received on Fri Jan 2 11:39:00 2009

This archive was generated by hypermail 2.1.8 : Fri Jan 02 2009 - 11:39:00 CET