I just recently updated to Aspose.Pdf.Kit 5.9.0.0 from a version about two years ago.
My AddText is cutting off the top of the text when adding to the pdf.
See attachments. 23.pdf is the document I am inserting text into. sample_output.pdf shows the text cut off.
Here is my code:
string sLicense = @"c:\program files\cooper power systems\eagle admin install\Aspose.Total.lic";
string sFileNameIN = @"c:\pdf_kit_test\23.pdf";
string sFilenameOUT = @"c:\pdf_kit_test\sample_output.pdf";
string sValueIn = "Customer: Cooper Power Systems";
Aspose.Pdf.Kit.License license = new Aspose.Pdf.Kit.License();
license.SetLicense(sLicense);
PdfPageEditor pe = new PdfPageEditor();
pe.BindPdf(sFileNameIN);
pe.Rotation = 270;
pe.Save(sFileNameIN + "2");
PdfFileInfo fileInfo = new PdfFileInfo(sFileNameIN + "2");
float height = fileInfo.GetPageHeight(1);
float width = fileInfo.GetPageWidth(1);
PdfFileMend mendor = new PdfFileMend(sFileNameIN + "2", sFilenameOUT);
int iFontSize = 6;
int iWidth = 450;
int iHeight = 46;
FormattedText txtInsert = new FormattedText(sValueIn, new FontColor(0, 0, 0), Aspose.Pdf.Kit.FontStyle.Helvetica, EncodingType.Winansi, false, iFontSize);
mendor.AddText(txtInsert, 1, iWidth, height - iHeight, width, height);
mendor.Close();