Hey,

since the beginning of the SDK we have such a simple example that exactly does what you want on a given directory ;-)

<sdk>/java/DocumentHandling/DocumentConverter.java

- compile the sample (using the SDK env, necessary to include the UNO simple bootstrap classes. Otherwise you have to include the class files on your own and have to make provide the required manifest entry)
- and run it with
java -jar DocumentConverter.jar "./test" "MS Word 97" "doc" "./converted_files"

  where
- "./test" specifies the source directory (all documents in this directory will be converted)
  - "MS Word 97" = filter name
  - "doc" = extension for the converted files
- "./converted_files" specifies the target directory where the converted files are stored

This example can be simply improved to be more comfortable ;-)

Juergen


Laurent Godard wrote:
Hi Louis,

"File > Wizards > Document Converter" not working?


:-) that's how I usually answer the question when it comes up. But many
large corporations/government offices seem anxious about converting
thousands, if not tens of thousands, of docs.


the batch way that is decribed is the implementation of OOoConv i did in 2003. The working site for transformation is actually down but the source code is available here.

http://oooconv.free.fr/oooconv/oooconv_en.html

a GUI local tool, enhancing the document converter is also available
http://oooconv.free.fr/batchconv/batchconv_en.html

all are free LGPL softwares

a python version, and XML-RPC, will be released soon as a more professional approach ;) (the sooner as i can :( )

Laurent


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to