I add text in footer in existing pdf document and my text out of edge. Whan i doing wrong?
var doc = new Aspose.Pdf.Document(“test.pdf”);
TextStamp ts =
new TextStamp(
@“Long text. Long text. Long text. Long text. Long text. Long text. Long text. Long text. Long text. Long text. Long text. Long text. Long text. Long text. Long text. Long text. Long text. Long text. Long text. Long text. Long text. Long text. Long text. Long text. Long text. Long text. Long text. Long text. Long text. Long text. Long text. Long text. Long text. Long text. Long text. Long text.”);
ts.LeftMargin = 100;
ts.BottomMargin = 20;
ts.RightMargin = 10;
ts.VerticalAlignment = VerticalAlignment.Bottom;
ts.HorizontalAlignment = HorizontalAlignment.Left;
foreach (Page page in doc.Pages)
{
page.AddStamp(ts);
}
doc.Save(“test.pdf”);