Firstly, thanks for your help.
There are two problems:
1. I cannot found the ODT ConvertType parameter in the list. Can you
write it to me?
2. When I begin to convert a simple MS Doc to the following types I get
an error with the ConvertServlet SDK example program:
The working converttype formats:
// html - OK
//convert_param = "HTML (StarWriter)";
//ext = "html";
//convert_param = "HTML (StarWriter)";
//ext = "html";
// OpenOffice Text Document - OK
//convert_param = "StarOffice XML (Writer)";
//ext = "sxw";
// Text - OK
convert_param = "Text";
//ext = "txt";
//convert_param = "StarOffice XML (Writer)";
//ext = "sxw";
// Text - OK
convert_param = "Text";
//ext = "txt";
// MS doc - OK
//convert_param = "MS Word 97";
//ext = "doc";
//convert_param = "MS Word 97";
//ext = "doc";
// Rich Text Format - OK
//convert_param = "Rich Text Format";
//ext = "rtf";
//convert_param = "Rich Text Format";
//ext = "rtf";
// StarOffice 6.0 Text Document Template - OK
//convert_param = "writer_StarOffice_XML_Writer_Template";
//ext = "sxw";
//convert_param = "writer_StarOffice_XML_Writer_Template";
//ext = "sxw";
And this is not working with your list:
// AportisDoc (Palm) - not working
//convert_param = "AportisDoc Palm DB";
//ext = "apd";
//convert_param = "AportisDoc Palm DB";
//ext = "apd";
// PDF - not working
//convert_param = "writer_pdf_Export";
//ext = "pdf";
//convert_param = "writer_pdf_Export";
//ext = "pdf";
// PocketWord - not working
//convert_param = "PocketWord File";
//ext = "pwf";
//convert_param = "PocketWord File";
//ext = "pwf";
// PDF - Portable Document Format - not working
//convert_param = "writer_globaldocument_pdf_Export";
//ext = "pdf";
//convert_param = "writer_globaldocument_pdf_Export";
//ext = "pdf";
The error message:
com.sun.star.io.IOException:
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at
com.sun.star.lib.uno.protocols.urp.Unmarshal.readThrowable(Unmarshal.java:315)
at
com.sun.star.lib.uno.protocols.urp.Unmarshal.readAny(Unmarshal.java:157)
at
com.sun.star.lib.uno.protocols.urp.Unmarshal.readObject(Unmarshal.java:404)
at com.sun.star.lib.uno.protocols.urp.urp.readReply(urp.java:192)
at
com.sun.star.lib.uno.protocols.urp.urp.readMessage(urp.java:308)
at
com.sun.star.lib.uno.protocols.urp.urp.readMessage(urp.java:607)
at
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge$MessageDispatcher.invoke(java_remote_bridge.java:184)
at
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge$MessageDispatcher.run(java_remote_bridge.java:175)
I tried to convert both versions of OpenOffice 1.1.4 and 2.0 beta
too.
What can be wrong ?
Please help,
Zoltan
-----Original Message-----
From: Mathias Bauer <[EMAIL PROTECTED]>
To: dev@framework.openoffice.org
Date: Sat, 09 Jul 2005 14:03:25 +0200
Subject: Re: [framework-dev] Java document converter to the writer application
> Juhász Zoltán wrote:
> > Hi,
> >
> > I found a ConverterServlet example in SDK. I want to create a desktop
> java
> > converter software, but I only found the following ConvertType
> parameters in
> > ConverterServlet.html:
> >
> > swriter: HTML (StarWriter)
> > swriter: StarOffice XML (Writer)
> > swriter: Text
> > swriter: MS Word 97
> >
> > I installed the OpenOffice 2.0 beta and I like to convert MS Word doc
> to ODT
> > format, but I dont't know the ConvertType parameter. I also want to
> convert
> > to other Doc types (example: Rich Text Format), but I could not found
> the
> > ConvertTypes paramters :(
> >
> > Have anybody knows the types of all supported documents?
>
> Perhaps
>
> http://framework.openoffice.org/files/documents/25/897/filter_descripti
> on.html
>
> shows you what you need to know. BTW: the "swriter: " prefix can be
> omitted, that was necessary only in the first version of OOo.
>
> Best regards,
> Mathias
>
> --
> Mathias Bauer - OpenOffice.org Application Framework Project Lead
> Please reply to the list only, [EMAIL PROTECTED] is a spam sink.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>