package siprp.util.fop;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;


public class Main
{

	/**
	 * @param args
	 */
	public static void main(String[] args)
	{

		try
		{
			File userConfigFile = new File("/home/jneto/fopConf.xml");
			FOPPrinter.setUserConfig(userConfigFile);
			FOPPrinter fp = FOPPrinter.getFOPPrinter();
			System.out.println(fp.getFopfactory().getFontBaseURL());
			fp.printFO(new FileInputStream("/home/jneto/test.fo"), true, true);
			

		} catch (FileNotFoundException e)
		{
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (Exception e)
		{
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}

}
