Watermark fix in Aspose.Pdf.Kit for .NET 3.5.0.0?

I downloaded the new Aspose.Pdf.Kit for .NET 3.5.0.0 to see if the bug where only the first page is stamped has been fixed. However, our subscription expired in May so I cannot test it. Can you tell me if the fix is in the release because the release documentation does not explicitly say that it is fixed.

Thank you,
Elizabeth

Hi Elizabeth,

Please use the following code snippet, along with the Aspose.Pdf.Kit 3.5.0.0, to sign all the pages of a PDF file.

PdfFileStamp stamper = new PdfFileStamp(TestPath + @"TEST_FILE.pdf", TestPath + @"output.pdf");
Stamp watermarkStamp = new Stamp();
PdfFileInfo pfi = new PdfFileInfo(TestPath + @"TEST_FILE.pdf");
int pageNumber = pfi.NumberofPages;

for (int i = 1; i <=pageNumber; i++)
{
Stamp logoStamp = new Stamp();
FormattedText formatText = new FormattedText("Aspose kit", System.Drawing.Color.FromArgb(192, 192, 192), FontStyle.TimesItalic, EncodingType.Winansi, false, 100); logoStamp.BindLogo(formatText);
logoStamp.PageNumber = i;
stamper.AddStamp(logoStamp);
}
stamper.Close();

I hope this helps. If you have any further questions, please do let us know.

Regards,