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:[email protected]] 
Sent: Wednesday, February 16, 2011 1:55 PM
To: [email protected]
Cc: [email protected]
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: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to