import com.xmlmind.fo.converter.Driver;

public class Sample1 {
    public static void main(String[] args) throws Exception {
        if (args.length != 2) {
            System.err.println("usage: java Sample1 fo_file rtf_file");
            System.exit(1);
        }

        Driver xfc = new Driver();
        xfc.setProperty("outputFormat", "rtf");
        xfc.setInput(args[0]);
        xfc.setOutput(args[1]);
        xfc.convert();
    }
}
