i am working C# with Angular 2
Aspose.Pdf.Generator.Pdf pdf = new Aspose.Pdf.Generator.Pdf();
var xmlFilePath = “”;
pdf.BindXML(xmlFilePath, null); // xmlfilepath has the path of file which is the template
var mainSection = pdf.Sections[0];
var bodyTable = (Table)mainSection.GetObjectByID(“BodyTable”);
foreach (var item in this.Model) // Model has the data list which is nearly 900 rows
{
var row = (Row)bodyTable.Rows[0].CompleteClone();
string[] items = new string[5];
bodyTable.ImportArray(items, counter, 0, false);
}
pdf.SetUnicode();
pdf.Save(outputFilePath); // this take 2 minute it is just save the pdf file to my machine