Can not get TextInfo to apply to anything at all in PDF

Hello

We are in process of buying Apose.PDF license, but I must complete a proof of concept to our client first.

Everything works GREAT, except text formating does not work.

Here is what I have tried
[C#]

Aspose.Pdf.Pdf oPDF = new Pdf();
oPDFSection = new Section();
oPDFSection.TextInfo.FontSize = 26F;

oPDFTable = new Aspose.Pdf.Table();
oPDFSection.Paragraphs.Add(oPDFTable);
oPDFRow = oPDFTable.Rows.Add();
oPDFCell = oPDFRow.Cells.Add(“I wish i was big”);

I have also tried
[C#]

Aspose.Pdf.Pdf oPDF = new Pdf();
oPDFSection = new Section();
TextInfo oPDFTextInfo = oPDFSection.TextInfo.Clone();
oPDFTextInfo.FontSize = 26F;
oPDFSection.TextInfo = oPDFTextInfo;

oPDFTable = new Aspose.Pdf.Table();
oPDFSection.Paragraphs.Add(oPDFTable);
oPDFRow = oPDFTable.Rows.Add();
oPDFCell = oPDFRow.Cells.Add(“I wish i was big”);


I have tried changing the text info of the pdf, the section, the table, the cells, and the text segmants directly. I have tried changing font size, font name, bold/underline/etc. None of these things have any effect on my output pdf.

Please, does anyone have any idea what’s going on?

Thank you!
Chris

Dear Chris,

Thank you for considering Aspose.

The following code should work:

Aspose.Pdf.Pdf oPDF = new Pdf();
oPDFSection = new Section();
oPDFSection.TextInfo.FontSize = 26F;

oPDFTable = new Aspose.Pdf.Table(oPDFSection);
oPDFSection.Paragraphs.Add(oPDFTable);
oPDFRow = oPDFTable.Rows.Add();
oPDFCell = oPDFRow.Cells.Add(“I wish i was big”);

But there is a bug and I have fixed it. Please down load hotfix here.

The following code also works:

Aspose.Pdf.Pdf oPDF = new Pdf();
oPDFSection = new Section();
TextInfo oPDFTextInfo = oPDFSection.TextInfo.Clone();
oPDFTextInfo.FontSize = 26F;
oPDFSection.TextInfo = oPDFTextInfo;

oPDFTable = new Aspose.Pdf.Table();
oPDFSection.Paragraphs.Add(oPDFTable);
oPDFRow = oPDFTable.Rows.Add();
oPDFCell = oPDFRow.Cells.Add(“I wish i was big”);
oPDFCell.DefaultCellTextInfo = oPDFTextInfo;