Dear Friends..
I am using iTEXT to convert xhtml into pdf in a web application.i am getting the following error.I tried my level best to spot the cause of the error.But could not do it.
The Code:
String inputFile = "D://Data_Local//xml//docs//testXHTML.xml";
String url = new File(inputFile).toURI().toURL().toString();
String outputFile = "D://Data_Local//xml//docs//firstdoc.pdf";
OutputStream os = new FileOutputStream(outputFile);
ITextRenderer renderer = new ITextRenderer();
renderer.setDocument(url);
renderer.layout();
renderer.createPDF(os);
os.close();
Error:
Exception occured While Logging In : org.xhtmlrenderer.util.XRRuntimeException: Failed on configuring SAX to DOM transformer.
This same
java code works fine when it is used in java application but throws this exception when used in web application....
Thank You.....