I am adding a stamp with a date text to a specific page in a pdf using the following code:
Dim pfsStamp As New Aspose.Pdf.Kit.PdfFileStamp(sDocumentPath, sTempPath)
Dim sStamp As New Aspose.Pdf.Kit.Stamp
sStamp.SetOrigin(nDateX, nDateY)
sStamp.PageNumber = nPage
sStamp.BindLogo(New Aspose.Pdf.Kit.FormattedText(sDate, System.Drawing.Color.Black, Aspose.Pdf.Kit.FontStyle.HelveticaBold, Aspose.Pdf.Kit.EncodingType.Winansi, True, _FontSize))
pfsStamp.AddStamp(sStamp)
pfsStamp.Close()
This used to work, but now puts the text on every page instead of just on the page that was supplied. Try a two page document and add the stamp to page 2. This will cause the stamp to show on both page 1 and 2. I have had this happen with both 4.9.0 and 5.2.0. The only change I made recently was moving my project from .Net framework 2.0 to 3.5.