![]() ![]() ![]() ![]()
http://xml.apache.org/fop/index.html http://www.renderx.com/FO2PDF.html What is RTF2FO: RTF to XML Converter!? RTF2FO: RTF to XML converter! converts files prepared in Rich Text Format (RTF) to well-formed XML conforming with the XSL FO specification 1.0 (http://www.w3.org/TR/xsl/slice6.html). The RTF format is widely used in many applications, e.g. Microsoft® Word documents can be saved in RTF format. What Operating System and software is required for running RTF2FO: RTF to XML Converter? RTF2FO: RTF to XML converter! is a pure Java™ application. It runs under any operating system having Java™ 2 Runtime Environment (JRE 1.2 or higher) or Java™ 2 Platform (JDK 1.2 or higher) installed (http://java.sun.com/products/). JDK/JRE 1.3 or higher is recommended. Other products required for RTF2FO: RTF to XML Converter! are included into the distribution package. What is XSL FO? XSL FO (XSL Formatting Objects) is an XML vocabulary for specifying formatting semantics. XSL FO is commonly used as an intermediate representation of electronic documents for further conversion to other well-known formats such as HTML and PDF using the variety of XSL FO processors (http://www.w3.org/Style/XSL/). How to install RTF2FO: RTF to XML converter! RTF2FO: RTF to XML converter! version 2.0 or later is installed with the help of a setup program - RTF2Fosetup.jar. To start the setup, unzip installation package, run setup.bat and follow the setup program prompts. I unzipped the product. Setup.bat does nothing. Now what? Either Java is not installed properly, or it is not installed on your computer at all. What should I do before installing a new version of RTF2FO: RTF to XML converter! if an old version is already installed? To install a new version of RTF2FO: RTF to XML converter! to the same location where a previous version was installed, you must at first remove all files and subdirectories of the previous version. You can also install a new version to another location. In this case, you need no removing at all and you can use both the previous and the new version on your choice. Uninstall of the RTF2FO: RTF to XML Cinverter! is quite simple: remove the root directory of RTF2FO: RTF to XML Converter! together with all files and subdirectories in it. What XLS FO processor do you recommend for conversion to PDF? The most popular XSL FO processors to PDF are FOP (http://xml.apache.org/fop/), XEP (http://www.renderx.com/), and Antenna House XSL Formatter (http://www.antennahouse.com). The FOP is an open source project. At the moment, it is not a full implementation of the basic conformance level of the XSL FO standard. So, if you convert RTF to XML for further use of FOP 0.20.5, you must use the compatibility option Conversion limitations An RTF file cannot be converted to XML conforming to XSL FO specification without loss of some RTF formatting. Here, we outline main limitations of the conversion to XML in line with XSL FO specification. Some problems are unsolvable and some can be solved in future specifications of XSL FO.
RTF "Text Box" is converted incorrectly This is because FOP does not support text boxes yet. I'm experiencing problems with pictures All pictures recognized as imbedded files are extracted from RTF-file in process of conversion and stored in external files of an appropriate format. While processing an XSL FO, some errors on some pictures can occur . In most cases, the reason for this is that some rendering tools do not support WMF format. In this case, the RTF2FO plug-in interface allows to introduce "third-party" products to convert of images from one format to another "on the fly" . You need to install a batch conversion tool (for example, the ImageMagick) and edit a plug-in configuration file (see user's guide for more detail). Without plug-ins, you have to convert WMF pictures to JPEG or PNG manually and then change picture filenames in XSL FO to converted ones. A PDF-renderer uses other fonts than specified in RTF The problem of using improper fonts is at most the problem of configuring PDF-renderers. If a renderer "misreads" a font name, it replaces it with a default font. So, PDF-renderers are limited to a set of pre-configured fonts. To support more fonts, you should add their description into configuration files of PDF-renderers. A PDF-renderer fails while rendering to PDF There could be two main reasons for this problem to occur: XSL FO document is too large or complicated (rendering program goes out of memory) or the document uses XSL FO attributes not supported by the rendering program. The latter case occurs if you forget to set an appropriate compatibility model while converting the RTF-file to XSL FO. Why are headers and footers jammed? If height of a header content exceeds the header's region height, the header is clipped in its region and some bottom lines disappear (the overflow trait controls this). Footers behave in the same manner. We set the overflow trait for headers and footers to be "visible", but some rendering tools ignore this trait and clip these regions. From the other side, if this trait is processed, a body text just below the header or above the footer could be overlapped with the header or footer text and it could disappear also. So, to provide the full visibility of headers, footers, and body text, increase top and/or bottom margins of the RTF document to ensure that footers/headers do not overlap on the text area.
|
| ||