I used the sample provided here Add Header and Footer to PDF|Aspose.PDF for .NET
I set my footer to “123456” . This works fine, but if you double click the text and copy-paste it elsewhere the text is incorrectly being duplicated like “111111222222333333444444555555666666”
This is occurring with all numbers in the footer
this.PdfDocument = new Document(documentStream);
PdfDocument.EmbedStandardFonts = true;
PdfDocument.DisableFontLicenseVerifications = true;
for (var i = 0; i < PdfDocument.Pages.Count; i++)
{
// Create footer text
var footerText = new Aspose.Pdf.Text.TextFragment("123456");
// Create footer
var footer = new Aspose.Pdf.HeaderFooter();
footer.Paragraphs.Add(footerText);
// Set footer margin
footer.Margin = new Aspose.Pdf.MarginInfo
{
Left = 20,
Top = 40,
Right = 20
};
PdfDocument.Pages[i+1].Footer = footer;
}
this.PdfDocument.Save(documentStream, new PdfSaveOptions { DefaultFontName = "Arial" });
documentBytes = documentStream.ToArray();
}