here is my code... ByteArrayOutputStream pclByteArrayData = new ByteArrayOutputStream(); try {
FOUserAgent foUserAgent = fopFactory.newFOUserAgent(); // Construct fop with desired output format Fop fop = fopFactory.newFop(MimeConstants.MIME_PCL, foUserAgent, pclByteArrayData); // Setup input for XSLT transformation Source src = new StreamSource(new StringReader(alertNotificationXML)); // Resulting SAX events (the generated FO) must be piped through to // FOP Result res = new javax.xml.transform.sax.SAXResult(fop.getDefaultHandler()); // Start XSLT transformation and FOP processing transformer.transform(src, res); // Result processing FormattingResults foResults = fop.getResults(); if(foResults != null && foResults.getPageSequences() != null) { java.util.List pageSequences = foResults.getPageSequences(); for (java.util.Iterator it = pageSequences.iterator(); it.hasNext();) { PageSequenceResults pageSequenceResults = (PageSequenceResults) it.next(); objLogger.debug("PageSequence " + (String.valueOf(pageSequenceResults.getID()).length() > 0 ? pageSequenceResults.getID() : "<no id>") + " generated " + pageSequenceResults.getPageCount() + " pages."); } objLogger.debug("Generated " + foResults.getPageCount() + " pages in total."); } } catch (Throwable ex) { ex.printStackTrace(); } the above code is creating +~JF31411.tmp files...this file size is very huge and each and every time it's creating. Thanks, -Soma -- View this message in context: http://www.nabble.com/FOP-creating-*.tmp-files-tp23826246p23832256.html Sent from the FOP - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org