--to-name is generally used for specifying the desired output file name.
--to is generally for specifying the format of the file you want to
convert to. Common file extensions and mime types are supported (eg.
"html", "htm", "text/html" are equivalent).
As a shortcut for "--to=html --to-name=file.html", abiword will accept
"--to=file.html".
Abiword can output to "file descriptor" URIs. fd://1 is stdout, fd://2
is stderr, etc.
You'd ideally like to combine the two. However, a file name of
"fd://1.html" is nonsensical, so you can't do "--to=fd://1.html".
So, if you're using AbiWord 2.6 or newer, you can do the following to
achieve the intended behavior:
abiword --to=html --to-name=fd://1 file.doc
On Wed, Mar 11, 2009 at 4:26 PM, David Brown <dave@davidhbrown.us> wrote:
>
> I'm trying to use Abiword along with Swish-e to automatically index .doc
> files uploaded to a FreeBSD 6.3 web site. To set up a "filter" for .doc
> files, I need to specify a command line that will emit the HTML on stdout.
>
> I believe that I have found a method to do this by setting the
> --to-file=|cat option (the "filename" is actually pipe to the cat utility),
> but as this seems a bit kludgy, I thought I'd check whether there was a
> better way to have abiword just out its conversion directly rather than
> creating files.
>
> Under Windows, I was able to get --to-file=|type to work. But on the actual
> FreeBSD server, I'm getting this unwelcome behavior:
>
> $ abiword --help
> Error on option --help: unknown option.
> Run 'abiword --help' to see a full list of available command line options.
> $ abiword -?
> Error on option -?: unknown option.
> Run 'abiword --help' to see a full list of available command line options.
>
> Has anyone seen this before? I even did a "portupgrade -f -R abiword" to
> make sure it had current versions of all its dependencies.
>
> Despite that I can get abiword to translate a file with a specified name.
> But I really would like to pipe it to stdout rather than write a program to
> pick a tmp file, run abiword, output the tmp file, and delete the tmp
> file...
>
> Thanks,
>
> Dave
>
> --
> David H. Brown
> dave@davidhbrown.us
>
>
>
> -----------------------------------------------
> To unsubscribe from this list, send a message to
> abiword-user-request@abisource.com with the word
> unsubscribe in the message body.
>
-- Mediocrity knows nothing higher than itself; but talent instantly recognizes genius. ----------------------------------------------- To unsubscribe from this list, send a message to abiword-user-request@abisource.com with the word unsubscribe in the message body.Received on Wed Mar 11 21:36:26 2009
This archive was generated by hypermail 2.1.8 : Wed Mar 11 2009 - 21:36:26 CET