Free Support Forum - aspose.com

IsFirstRowRepeated - Losing padding

Hi,


I try to use IsFirstRowRepeated on an xml template, but i’m losing the first padding on the second page.
My samples :

XML :

Elem 1
Elem 2
Elem 3


C# code :
var license = new Aspose.Pdf.License();
license.SetLicense(“Aspose.Total.lic”);
var pdf = new Pdf { IsTruetypeFontMapCached = false };
pdf.BindXML(@“E:\TEST\TemplateP1.xml”, null);
var section = pdf.Sections[4];
var ls = new List();

for (int i = 0; i < 100; i++)
{
ls.Add(new TestClass
{
Element1 = “Calling”,
Element2 = “0692******”,
Element3 = “26/10 17:41:19”,
});
}
var tab = ((Table)section.GetObjectByID(“Detail”));
foreach (var testClassPourBind in ls)
{
var row = tab.Rows.Add();

var cell = row.Cells.Add();
var txt = new Text(testClassPourBind.Element1)
{
TextInfo =
{
FontName = “Calibri”,
FontSize = 7,
Alignment = AlignmentType.Left
}
};
cell.Paragraphs.Add(txt);

cell = row.Cells.Add();
txt = new Text(testClassPourBind.Element2)
{
TextInfo =
{
FontName = “Calibri”,
FontSize = 7,
Alignment = AlignmentType.Center
}
};
cell.Paragraphs.Add(txt);

cell = row.Cells.Add();
txt = new Text(testClassPourBind.Element3)
{
TextInfo =
{
FontName = “Calibri”,
FontSize = 7,
Alignment = AlignmentType.Center
}
};
cell.Paragraphs.Add(txt);
}
pdf.Save(“E:/TestWithTpl.pdf”);

(The result pb on attachment)

Can you help me please?





Hi Prezut,


Thanks for using our products.

I have tested the scenario using Aspose.Pdf for .NET 7.6.0 and I am unable to notice the padding issue. For your reference, I have also attached the resultant PDF which is generated over my end.

Furthermore, I have observed that the border for first row is not appearing on first page. For the sake of correction, I have logged this
issue as
PDFNEWNET-34802 in our issue tracking system. We will
further look into the details of this problem and will keep you updated on the
status of correction. Please be patient and spare us little time. We are sorry
for this inconvenience.

<span style=“font-size:10.0pt;font-family:“Arial”,“sans-serif”;
mso-fareast-font-family:“Times New Roman”;color:#333333”><o:p></o:p>

Thank you for your help