You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Matthew Lancashire <m....@ies.uk.com> on 2003/01/29 10:49:36 UTC
JAVA DLL Correct.(Still learning slowly)
import org.apache.fop.apps.Driver;
import org.apache.fop.apps.FOPException;
import org.apache.fop.apps.Version;
import org.apache.fop.apps.InputHandler;
import org.apache.fop.apps.XSLTInputHandler;
import org.apache.fop.layout.Page;
import org.apache.fop.messaging.MessageHandler;
import javax.xml.transform.*;
import org.xml.sax.*;
import java.io.*;
/**
* @com.register ( clsid=FFCB6024-FDBC-4F5D-9DA2-0C161F5C5B3C,
typelib=3020ED72-2348-4EBB-BF62-86309CBF439B )
*/
public class fop
{
public void fop(String xmlFile, String xslFile, String outFile) throws
TransformerConfigurationException, TransformerException,
FileNotFoundException, FOPException, IOException
{
Driver driver = new Driver();
driver.setRenderer(Driver.RENDER_PDF);
InputHandler inputHandler = new XSLTInputHandler(new File(xmlFile), new
File(xslFile));
XMLReader parser = inputHandler.getParser();
driver.setOutputStream(new FileOutputStream(outFile));
driver.render(parser, inputHandler.getInputSource());
}
}
I have created a dll from the above that is supposedly COM complient.
Can I call thsi from Client side browser script usinf JScript
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org