On 10/29/2010 05:40 PM, Robert Gurol wrote: > > as a developer, I am currently evaluating the XFC library for the > purpose of DOCX file generation, from given XSL-FO. > > I am using the XFC library (xfc.jar) under Java 1.6. > > Our software currently saves images for our reports in SVG format, yet > for the aforementioned conversion, this does not seem to work, despite > the information on > http://www.xmlmind.com/foconverter/conformance.html.
If you are embedding XFC in your application, you probably forgot to add a number of .jar files to your CLASSPATH: XFC_install_dir/ext/lib/ batik-all.jar jeuclid-core.jar xml-apis-ext.jar commons-io.jar js.jar xml-apis.jar commons-logging.jar xfc_ext.jar xmlgraphics-commons.jar The above .jar files are needed to add SVG and MathML support to XFC. > Furthermore, when I include png images instead, they are of a somewhat > coarse-grained quality, despite the fact that I set the > "imageResolution" property of com.xmlmind.fo.converter.Converter to high > values (such as 400). You should remove imageResolution=400. The "imageResolution" property will not give you a better PNG quality. The doc says: "Used to compute the intrinsic size of an image, but only when an image file does not contain resolution or absolute size information." Instead, please specify prescaleImages=false. See http://www.xmlmind.com/foconverter/_distrib/doc/user/command_line_java.html See http://www.xmlmind.com/foconverter/_distrib/doc/api/com/xmlmind/fo/converter/Converter.html#setProperty(java.lang.String,%20java.lang.String) > > My question is: Are these restrictions due to the fact that I am using > the evaluation (= personal) edition? > (If not, I would provide a more detailed description of the problem, of > course.) > Clearly no. Please follow the above recommendations and your problems should be solved. -- XMLmind FO Converter Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xfc-support

