manojkmi wrote:
I changed the code as mentioned


      FopFactory fopFactory = FopFactory.newInstance();
      FOUserAgent foUserAgent = fopFactory.newFOUserAgent();
OutputStream out = new BufferedOutputStream(new FileOutputStream(new File(("\bro.pdf")))); try
      {
        Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, foUserAgent,
out);
        TransformerFactory factory = new
org.apache.xalan.processor.TransformerFactoryImpl();
        Transformer transformer = factory.newTransformer(new
StreamSource(new File("\Brodart.xsl")));
        transformer.setParameter("versionParam", "2.0");
        Source src = new DOMSource(doc);
        Result res = new SAXResult(fop.getDefaultHandler());
        transformer.transform(src, res);

Even then it is taking long time. Please HELP

Try to isolate the problem in a systematic way.
First, check whether the process is thrashing. If not, serialize
the DOM you generate into a file an run the FOP command line in
the server environment to check whether there are general problems.
Serialize the result of the transformation and in a second step
use this FO file instead of generating the DOM and running the
transformation. If all else fails, get a profiler and check which
objects fill the memory and which methods take the most time.

J.Pietschmann

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to