If you read the documentation I believe it's in there. PNG produces images which are single page so you only get the first page. If you use FOUserAgent.setOutputFile() to assign a name you can get one file per page. If you use embedded code and want the page objects get them from the renderer.
-----Original Message----- From: nikhil pingili [mailto:nikhilping...@gmail.com] Sent: Wednesday, February 16, 2011 1:55 PM To: fop-users@xmlgraphics.apache.org Cc: fop-users-h...@xmlgraphics.apache.org Subject: converting to PNG format Hi Currently I am converting an XML to PDF format and this is woking fine.I want to convert the XML to PNG format. What I have done is change Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, foUserAgent, out) to Fop fop = fopFactory.newFop(MimeConstants.MIME_PNG, foUserAgent, out). The output comes,but the problem is instead of 4(the output should be 4 pages,this is how it is in the PDF) pages it only shows one page. Any thoughts on why is this happening Thanks Nikhil. --------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org