We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Aspose PDF XML to PDF


I do have XML as a dynamically generated string, I used this string as input byte array to

However now I tried to use new document type and I see bindXml has only String (file url) as parameter.

I do not want to save my content on disk the then pass on the address of xml file to this method.

Is there any other way to do this ?


Hi Ritesh,

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.

We are sorry for the inconvenience caused.

Best Regards,

Hi Ritesh,

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.

Best Regards,