Hi,
There is no problem with the license file. The WorkOrder.xslt that you are using will transform the xml into html where as the BindXML method expects an xml as input which is according to the Aspose.Pdf schema. You have two options. You can use your WordOrderPDF.xslt along with the BindFO method as follows.
Aspose.Pdf.Pdf pdf1 = new Pdf();
pdf1.BindFO("AA00000_Bronze.xml", "WorkOrderPDF.xslt");
pdf1.IsTruetypeFontMapCached = true;
pdf1.TruetypeFontMapPath = System.IO.Path.GetTempPath();
pdf1.Save(@"Output.pdf");
You can also use the WorkOrder.xslt to trsnform your xml to html and then use BindHTML method to convert to PDF as follows.
// Create the XslTransform.
System.Xml.Xsl.XslTransform xslt = new System.Xml.Xsl.XslTransform();
// Load the stylesheet.
xslt.Load("WorkOrder.xslt");
// Load the XML data file.
System.Xml.XPath.XPathDocument doc = new
System.Xml.XPath.XPathDocument("AA00000_Bronze.xml");
// Create the XmlTextWriter to output to the console.
MemoryStream ms = new MemoryStream();
//System.IO.TextWriter tw = new System.IO.TextWriter();
System.Xml.XmlTextWriter writer = new
System.Xml.XmlTextWriter(ms, new System.Text.UTF8Encoding());
// Transform the file.
xslt.Transform(doc, null, writer);
ms.Seek(0, SeekOrigin.Begin);
Aspose.Pdf.Pdf pdf1 = new Pdf();
pdf1.BindHTML(ms);
pdf1.IsTruetypeFontMapCached = true;
pdf1.TruetypeFontMapPath = System.IO.Path.GetTempPath();
pdf1.Save(@"Output.pdf");
writer.Close();
Or you can write a new xslt that transform your xml into Aspose.Pdf xml and then use the BindXML method as you are doing now.
Thanks.