W3C home > Mailing lists > Public > www-xsl-fo@w3.org > June 2002

embedding fop

From: Seema Bhatnagar <seema.bhatnagar@systor.com>
Date: Thu, 20 Jun 2002 15:28:52 +0200
To: www-xsl-fo@w3.org
Message-ID: <OF1E56517D.A332D3F4-ONC1256BDE.0049AA8B@systor.com>

I am generating pdf using the  xslt processor.
Code goes like this.
          XMLReader parser = XMLReaderFactory.createXMLReader
("org.apache.xerces.parsers.SAXParser");

          Driver driver = new org.apache.fop.apps.Driver();
          parser.setContentHandler(driver.getContentHandler());
          driver.setXMLReader(parser);
          driver.setRenderer(Driver.RENDER_PDF);

            driver.addElementMapping
("org.apache.fop.fo.StandardElementMapping");
          driver.addElementMapping("org.apache.fop.svg.SVGElementMapping");
          driver.setOutputStream(out);

          driver.render(parser, new InputSource("c:\\temp.fo"));


it is perfectly generating pdf.
But i want to avoid giving the 'temp.fo'  file which is being generared by
the xsltresult of xslt processor.
Could anybody tell me , is there a way to generate the pdf without giving
the fo file, but the output stream or something else.
thanks.
seema
Received on Thursday, 20 June 2002 09:29:27 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:09 GMT