[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help files and scripting



ninewands wrote:
1.  Can anyone tell me where to find the help files for OOo, or if they
install with the packages, how to make them work?  I've installed the
woody packages on my sarge box and trying to open "Help" gets me a
message "The requested document does not exist in the database !!"

which leads into my second point

On 22 Nov 2002 13:59:16 USCST (GMT -6) John Goerzen
<jgoerzen@complete.org> took pen in hand and enscribed:


I'm interested in writing an automated word-to-PostScript converter. OpenOffice is well capable of opening Word documents, and of printing
to PostScript and even comes with some "simple" examples of doing some
of this. But I cannot find a way to just tell it from the command line, without opening any X windows, to do that sort of thing. Does such a mechanism exist?


I doubt there is a way to do it without opening any windows, given that
the oo wrapper scripts will only accept <FILENAME> as a parameter,
however, I am sure that there is some way to create an equivalent of
Microsoft's AutoRun macro such that you could create a template that
contained the macro and scripting to minimize the main window and open a
file selection dialog where you would select the .doc file you wanted. The script could then print the file to a postscript file and cause
oowriter to exit.  Unfortunately, I have looked at all of the leading
open source word processors (oowriter, abiword and KWord) and it seems
NONE of them offer an option to "Save As ... " postscript or pdf.  They
will all print to postscript/pdf, but that makes using them in the way
you want just as unwieldy as doing it with oowriter and it appears that
neither abiword nor KWord support a macro language.
With Abiword at least you wouldn't need to: it uses Wv, which are tools about converting files among different formats. As you already have command-line converters, why would you want Abiword to do that?

When I can read the help files (see, point #1, above) and learn a little
more about oowriter, I'd be glad to help you further if it looks like
this might be feasible.





Reply to: