DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=42590>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42590 Summary: Performance Issue Need Help Product: Fop Version: all Platform: Sun OS/Version: Windows XP Status: NEW Severity: critical Priority: P1 Component: pdf AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] We created a code snippet to convert XML+XSL to PDF using FOP. We are using OC4j as Application Server. Here is the code: FopFactory fopFactory = FopFactory.newInstance(); FOUserAgent foUserAgent = fopFactory.newFOUserAgent(); OutputStream out = new BufferedOutputStream(new FileOutputStream(new file("/brodart.pdf"))); try {System.setProperty("javax.xml.transform.TransformerFactory","org.apache.xalan.processor.TransformerFactoryImpl"); Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, foUserAgent, out); TransformerFactory factory = TransformerFactory.newInstance(); Transformer transformer = factory.newTransformer(new StreamSource(new File("/Brodart.xsl"))); transformer.setParameter("versionParam", "2.0"); Source src = new StreamSource(new File("/brodart.xml")); Result res = new SAXResult(fop.getDefaultHandler()); transformer.transform(src, res); It is taking around 15 minutes to complete this process. This will be huge performance issue. Please help me out asap. Have anybody related problems? Are the usage of Templates better for the Transformation process? deeply grateful for any advice! thanks to the community! Manoj -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
