Hi!
I used the following code for generating PDF on
fly from FO file.
System.Xml.Xsl.XslTransform xslt = new
System.Xml.Xsl.XslTransform();
xslt.Load(new XmlTextReader(xslFile));
xslt.Transform(xmlFile, foFile);
FileInputStream input = new FileInputStream(foFile);
InputSource source = new InputSource(input);
FileOutputStream output = new FileOutputStream
(pdfFile);
Driver driver = new Driver(source, output);
driver.setRenderer(Driver.RENDER_PDF);
driver.run();
output.close();
But it is taking too long time while inserting any
image into PDF document. It is doing fine if i
include only text.
Is there any reason behind this? Please give me the
solution.