Multiple Signatures on a Single PDF

@pravin1972

Would please also share the sample code snippet (as requested earlier) that you are using to carry out the whole process? We will test the scenario in our environment and address it accordingly.

PS: However, as per Adobe Reader, any change to the signed PDF document will revoke the signature validations.

Version of the Aspose.pdf we are using.
Current Aspose.pdf Version is 21.9

Scenario
When we insert multiple signatures in a single pdf, only the last signature is shown as valid, and all the prior signatures appear as invalid (in the signature panel). For example, if there are two signatories and a ten-page pdf document, then when we place two signatures per page and total twenty signatures should be valid.

Code snippet
MemoryStream stream = new MemoryStream(pfxBytes);
PKCS7 signature = new PKCS7(stream, null);
try
{
PdfFileSignature pdfSign = new PdfFileSignature();
signature.ShowProperties = false;
if (SignonAllPage == 0) // Sign On all pages
{
int lpcount = strlist.Length;
PdfPageEditor pEdit = new PdfPageEditor();
pEdit.BindPdf(Destination);
for (int j = 0; j < lpcount; j++) // for loop for all pages for multiple signature
{
for (int PageCnt = 1; PageCnt <= NumberofPageInFile; PageCnt++)
{

                        double xpos = 0, ypos = 0; int pageNumber = 0;
                        string[] RectPos = strlist[j].Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries);
                        pageNumber = Convert.ToInt32(RectPos[0]);
                        xpos = Convert.ToDouble(RectPos[1]);
                        ypos = Convert.ToDouble(RectPos[2]); 
                        PageSize size = pEdit.GetPageSize(pageNumber);
                        ypos = GetYPosition(size.Height, ypos);
                        xpos = GetXPosition(size.Width, xpos);
                        MemoryStream SignImagestream = new MemoryStream(ImageData); 
                        Bitmap bitMapImage = new System.Drawing.Bitmap(SignImagestream); 
                        bitMapImage = GetFinalImage(bitMapImage, UserName, "", EnvelopeId); 
                        System.Drawing.Rectangle rect = new System.Drawing.Rectangle(Convert.ToInt32(xpos), Convert.ToInt32(ypos), 140, 40); 
                        using (MemoryStream ms = new MemoryStream())
                        {
                            bitMapImage.Save(ms, ImageFormat.Png);
                            pdfSign.SignatureAppearanceStream = ms;
                            pdfSign.BindPdf(Destination);
                            pdfSign.Sign(PageCnt, true, rect, signature);
                            pdfSign.Save(Destination);
                        }
                        SignImagestream.Dispose();
                        SignImagestream.Flush();
                    }
                }
            }

Sample PDF
Attached Sample File

Please review and provide the resolution asap.

@rossjac

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFNET-54595

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

@asad.ali we are waiting for your response.
As you know its bug in your version, and you have fixed it in latest version. Can we get 21.9 version bug free? request you to take it on priority we are following you from 2-3 Month. Also suggest alternative options.

@pgkulkarni

The ticket is sadly not fully investigated yet due to other pending issues in the queue. However, we have recorded your concerns and we will surely consider them during ticket investigation process. Please note that we do value your concerns however, fixes to the reported issues are always made in the latest versions of the API. That is why we always recommend to use the latest version.

Please spare us some time to fully investigate the issue and share our feedback with you. We apologize for your inconvenience.