Free Support Forum - aspose.com

Import xml and generate pdf

Hello. I am new in aspose and I want your help. I want to use a xml as import and using a rtf template to generate as output pdf. I install aspose.pdf . Could you tell the steps in order to
1.import the xml
2. Use the rtf template as reference
3. Export pdf according to rtf

@gheretis

Thanks for contacting support.

Currently Aspose.PDF supports XML to PDF Conversion using XSLT template file and XML template structure should be according to XML Schema supported by the API. You can use following code snippet in order to generate PDF from XML and XSLT:

Document pdfDocument = new Document();
pdfDocument.BindXml("XML File", "XSLT File");
pdfDocument.Save("output.pdf"); 

Furthermore, would you please provide us your .rtf template file as a sample. We will check it and log an investigation ticket in our system to further investigate if we can add its support in library.