Also as per your previous message, can you please elabore based on my comments inline below
for Containerize.IdentityServer - Single sign-on to access all applications and services of Aspose Pty Ltd.
--------------------------------------your message-----------------------
Tomislav Medic posted 05/09/2022 11:56 am
Hi Venkata,
Please note the team investigated the issue.
When adding a stamp, all pages in the document will be changed and this will break the signature.
Also, Adobe Acrobat does not allow you to add stamps to a signed document, as this will break the signature.
Please, remove the digital signatures, add a stamp, and then sign the file again.
Venkat>> Sign file again means with valid certificate?
However, you can improve the message displayed in the document if you use this code. Perhaps this will help the customer.
var inputPdf = dataDir + “51441_.pdf”;
var outputPdf = dataDir + “51441_out.pdf”;
using (var fileStamp = new Aspose.Pdf.Facades.PdfFileStamp())
{
using (var fsInput = new FileStream(inputPdf, FileMode.Open))
{
using (var fsOutput = new FileStream(outputPdf, FileMode.Create))
{
//Copy stream//can use CopyTo
byte[] buffer = new byte[16 * 1024];
int read;
while ((read = fsInput.Read(buffer, 0, buffer.Length)) > 0)
fsOutput.Write(buffer, 0, read);
fileStamp.BindPdf(fsOutput);
var fontStyle = Aspose.Pdf.Facades.FontStyle.Courier;
var formattedText = new Aspose.Pdf.Facades.FormattedText(
"my text for stamp",
System.Drawing.Color.Black,
System.Drawing.Color.Transparent,
fontStyle, EncodingType.Winansi, false, 10);
fileStamp.AddHeader(formattedText, topMargin: 5f);
fileStamp.Document.Save();
}
}
}
This keeps the signature structure and allows us to use special options (but it stays “red”).
Venkat>> can you please elabore more