Thank you! And I've finally found the doc...
On Mon, 17 Oct 2011 10:34:52 +0200, Hussein Shafie <[email protected]> wrote: > On 10/17/2011 09:35 AM, Michael Kainzbauer wrote: >> >> i found the documentation part how to convert XML-FO to rtf. Now I wanted to >> try to convert to doc(x). Is this possible? How is this possible? Just >> changing >> >> converter.setProperty("outputFormat", "rtf"); >> >> to >> >> converter.setProperty("outputFormat", "doc"); > > Our tool does not support an output format called "doc". > > > >> or >> converter.setProperty("outputFormat", "docx"); > > That's fine. > > > >> >> does not work. >> > > When you do this, the error message reported by XMLmind XSL-FO > Converter is quite clear: > > --- > cannot convert '../data/countries.fo' to 'countries1.docx': > java.lang.Exception: unsupported encoding "Cp1252" > --- > > Therefore, for example in > <XFC_install_dir>/doc/user/samples/java/Sample1.java, you need to > replace: > > --- > converter.setProperty("outputFormat", "rtf"); > converter.setProperty("outputEncoding", "Cp1252"); > --- > > by: > > --- > converter.setProperty("outputFormat", "docx"); > converter.setProperty("outputEncoding", "UTF-8"); > --- > > This kind of settings is documented here: > http://www.xmlmind.com/foconverter/_distrib/doc/api/com/xmlmind/fo/converter/Converter.html#setProperty(java.lang.String,%20java.lang.String) -- XMLmind FO Converter Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xfc-support

