Hello,
i’m working on a migration of a legacy application that uses Aspose.Pdf 3.4.0.0.
We want to migrate to .Net 4.6.2 and so need to update the Aspose.Pdf api.
My problem is that some namespace have diesappeared and i don’t know how i can achieve having the same result.
Exemple :
Aspose.Pdf.Pdf m_pdf = new Aspose.Pdf.Pdf();
Aspose.Pdf.Section section1 = m_pdf.Sections.Add();
Table tab = new Table();
tab.RepeatingRows = 2;
Aspose.Pdf.Row row9;
for (int i = 0; i < BAPCompteData.NbCrit ; i++)
{
row9 = new Aspose.Pdf.Row(tab1); // contsuctort with this parameter does not existe in Aspose.Pdf V17.7
row9.Cells.Add(BAPCompteData.Crit[i].CritWording,t1);
row9.FixedRowHeight = 12f;
tab.Rows.Add(row9);
tab.Rows[i+7].Cells[0].ColumnsSpan = 3;
}
TextInfo tinfo = new TextInfo();
tinfo.FontName = “Arial”;
tinfo.FontSize = 8f;
tinfo.Alignment = AlignmentType.Center;
tab.SetColumnTextInfo(0, tinfo0);
tab.SetColumnTextInfo(4, tinfo0);
tab.SetColumnTextInfo(7, tinfo0);
tab.DefaultCellTextInfo = tinfo;
HeaderFooter hf1 = new HeaderFooter(section1);
section1.OddHeader = section1.EvenHeader = hf1;
hf1.DistanceFromEdge = 35f;
hf1.Paragraphs.Add(tab1); // where tab1 is an Aspose.Pdf.Table
In this sample, I can’t find :
- the types Aspose.Pdf.Pdf, Section, TextInfo
- the constructor HeaderFooter and Aspose.Pdf.Row with a parameter
- the properties DistanceFromEdge, RepeatingRows, DefaultCellTextInfo
- the method SetColumnTextInfo
Please, can you help (save)) me ? Is it possible to “translate” this sample in a compatible code with Aspose.Pdf V17.7 ?