Thanks for your inquiry. After initial investigation, we have logged an enhancement ticket PDFNEWJAVA-35253 in our issue tracking system for rectification. We will keep you updated about the issue resolution progress within this forum thread.
Thanks for your patience. Please use XmlLoadOptions to load XML from file or stream for XML to PDF conversion. Please check following code snippet for the purpose, it will help you to accomplish the task.
XmlLoadOptions options = new XmlLoadOptions();<o:p></o:p>
com.aspose.pdf.Document doc = new
com.aspose.pdf.Document(new ByteArrayInputStream(xml.getBytes()), options);
doc.save(testdata + "PDFNEWJAVA_35253/out.pdf");
Please feel free to contact us for any further assistance.