GemBox.Pdf – DSS Incremental Updates, PAdES-LT, and Microsoft Edge 156 Compatibility Issue

Hello Team,

I have encountered a compatibility issue with the display and validation of digitally signed PDF documents in Microsoft Edge 156.0.4314.58.

Until the previous version of Edge, my PAdES signatures were displayed as valid. After updating to version 156, documents containing DSS validation information added through an incremental update are flagged with a warning about unauthorized changes.

The same documents are successfully validated by both Adobe Acrobat and my own PDF digital signature validation implementation.

I have reproduced the issue in two scenarios:

A PDF document is digitally signed using GemBox.Pdf, and validation information is subsequently added through SecurityStore.AddValidationInfo(), following the DSS embedding approach demonstrated in your official PAdES-LT example.

A PDF document containing a valid PAdES-B-B signature is opened in Adobe Acrobat, and validation information is added using the “Add Verification Information” functionality. After saving the document, Edge displays the same warning.

For clarification, I use my own certificate chain builder to collect the required certificates, OCSP responses, and CRLs, which I then pass to SecurityStore.AddValidationInfo(), rather than relying entirely on GemBox.Pdf’s built-in validation information retrieval mechanism.

A PDF document signed at PAdES-B-B level, without subsequently adding DSS information, is displayed correctly in Edge.

I also experimented with calling AddValidationInfo() before the initial document.Save(), but GemBox.Pdf still generated a separate incremental revision containing the DSS dictionary.

I would like to explicitly emphasize that I understand that adding DSS information through an incremental update is a permitted modification under PAdES and does not invalidate the existing digital signature. Therefore, I do not consider this a defect in GemBox.Pdf. The issue appears to be related to a change in how the latest version of Microsoft Edge interprets these additional PDF revisions.

Nevertheless, I believe it would be beneficial if GemBox.Pdf provided an option to include DSS validation information during the initial signing process, within the same signed revision, rather than necessarily appending it through a subsequent incremental update.

When signing a document with Adobe Acrobat, I have observed exactly this behavior: the validation information is included in the signed revision and falls within the signature’s ByteRange. As a result, the document is also displayed correctly in Microsoft Edge 156.

My questions are:

  1. Is there a supported way to include DSS validation information in the same PDF revision being signed, so that it falls within the signature’s ByteRange, rather than being appended through a subsequent incremental update?
  2. Is the creation of a separate incremental revision for DSS intentional in the current GemBox.Pdf implementation, regardless of when AddValidationInfo() is called?
  3. Would it be possible to introduce an alternative initial signing mechanism, similar to Adobe Acrobat’s approach, where pre-collected DSS validation information is included in the signed revision without requiring manual modifications to the PDF structure?
  4. Are you aware of this issue in Microsoft Edge 156, and have you received similar reports from other customers?

I understand that the root cause of this issue lies in Microsoft Edge’s behavior rather than in GemBox.Pdf. Nevertheless, the consequences are significant for end users, who interpret the warning about unauthorized changes as evidence that the document has been modified or compromised.

For this reason, I would appreciate the possibility of an alternative approach during the initial signing process that would improve compatibility with Edge without compromising compliance with PAdES standards.

Thank you in advance for your assistance.

Best regards

Hi,

Here are the answers to your questions:

  1. GemBox.Pdf forbade PdfSigner.ValidationInfo containing any CRL or OCSP response if PdfSigner.SignatureLevel is PdfSignatureLevel.PAdES_B_B or higher. CRLs and OCSP responses are added to the signature as a value of ‘adbe-revocationInfoArchival’ signed attribute defined in ISO 32000-1 clause 12.8.3.3.2, but requirements specified in ISO 32000-1 clause 12.8.3.3 shall not be used according to the item i) on page https://www.etsi.org/deliver/etsi_en/319100_319199/31914201/01.02.01_60/en_31914201v010201p.pdf#page=21.
    We have decided to remove this restriction because the official ETSI Conformance Checker did not report an error for such a case, just a warning.
    So you can now add CRLs and OCSP responses directly to the signature via the PdfSigner.ValidationInfo even when creating PAdES signatures. A colleague of mine will notify you here once the build with this restriction removed is released (today or tomorrow).
    Note that the API documentation will still be in a stale state for some time, reporting that this is still forbidden.
    Also note that creating PAdES B-LT signatures with adding revocation information just to the signature via the PdfSigner.ValidationInfo and not to the document security store, to circumvent the issue with Microsoft Edge 156, will cause Adobe Reader to report the PAdES Signature Level as B-T instead of B-LT in the Advanced Signature Properties dialog window.
  2. The creation of a separate incremental revision for DSS was probably intentional so that the difference between PAdES B-LT level and PAdES B-LTA level examples can be more easily compared.
  3. As far as we know, nothing prevents you from obtaining the revocation information before the actual signing and populating the DSS with it before the actual signing.
    We noticed that when revocation information is added to the DSS without an incremental update, then Edge doesn’t report that the document has been modified (as when revocation information is added to the DSS through an incremental update), but reports an unknown signature and that the signer’s identity could not be verified. The only way to circumvent this Edge’s behavior, and still have a PAdES B-LT level signature, is to include the revocation information both to the signature (via the PdfSigner.ValidationInfo) and to the DSS without incremental update.
  4. We were not aware of this issue and did not receive similar reports from other customers.

A colleague of mine will notify you here once the build that allows you to specify revocation information (CRLs and/or OCSP responses) directly in the PAdES signature via PdfSigner.ValidationInfo is available. Using that approach, as well as including the same revocation information in the DSS, to maintain the PAdES B-LT signature level, not in an incremental update, but before saving the signed PDF file, should achieve the maximum compatibility with the Edge browser’s behavior.

Regards,
Stipo

Hello Stipo,

Thank you for your detailed response, quick reaction, and willingness to remove the restriction on “PdfSigner.ValidationInfo” for PAdES signatures.

I have just two additional questions:

  1. In my tests, calling “SecurityStore.AddValidationInfo()” before “document.Save()” still resulted in a separate incremental revision containing the DSS. Could you provide a short example demonstrating how to properly combine “PdfSigner.ValidationInfo” and “SecurityStore.AddValidationInfo()” so that the DSS is included in the same signed revision?
  2. I am also concerned about the potential increase in PDF file size when validation information is duplicated in both the CMS signature and the DSS. In cases where OCSP is unavailable and CRLs must be used, their size can sometimes reach several megabytes. This could significantly increase the size of the signed document. Is there a way to avoid such duplication?

Thank you again for your assistance. I look forward to testing the proposed solution once the new build is available.

Best regards

Hi,

Sure, here is an example method:

private static void PadesBLTWithValidationInfoInCmsAndDSS(string outputFileName, bool addValidationInfoToCms, bool addValidationInfoToDss, ref PdfSignatureValidationInfo? validationInfo)
{
    var desktop = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);

    using (var document = PdfDocument.Load(Path.Combine(desktop, "Reading.pdf")))
    {
        // Add a visible signature field to the first page of the PDF document.
        var signatureField = document.Form.Fields.AddSignature(document.Pages[0], 300, 500, 250, 50);

        // Get a digital ID from PKCS#12/PFX file.
        var digitalId = new PdfDigitalId(Path.Combine(desktop, "GemBoxECDsa521.pfx"), "GemBoxPassword");

        // Create a PDF signer that will create PAdES B-LT level signature.
        var signer = new PdfSigner(digitalId);

        // PdfSigner should create CAdES-equivalent signature.
        signer.SignatureFormat = PdfSignatureFormat.CAdES;

        // PdfSigner will embed a timestamp created by freeTSA.org Time Stamp Authority in the signature.
        signer.Timestamper = new PdfTimestamper("https://freetsa.org/tsr");

        // Make sure that all properties specified on PdfSigner are according to PAdES B-LT level.
        signer.SignatureLevel = PdfSignatureLevel.PAdES_B_LT;

        if ((addValidationInfoToCms || addValidationInfoToDss) && validationInfo is null)
            validationInfo = document.SecurityStore.GetValidationInfo(digitalId.Certificate!);

        if (addValidationInfoToCms)
            signer.ValidationInfo = validationInfo;

        if (addValidationInfoToDss)
            document.SecurityStore.AddValidationInfo(validationInfo!);

        // Initiate signing of a PDF file with the specified signer.
        signatureField.Sign(signer);

        // Finish signing of a PDF file.
        document.Save(Path.Combine(desktop, outputFileName));
    }
}

It uses the same files as the example PDF Advanced Electronic Signatures (PAdES) in C# and VB.NET, and files should be downloaded to your Desktop.

And here is a code snippet that shows how it is used to create three signed PDF files on your Desktop:

PdfSignatureValidationInfo? validationInfo = null;
PadesBLTWithValidationInfoInCmsAndDSS("PAdES B-LT in CMS.pdf", addValidationInfoToCms: true, addValidationInfoToDss: false, ref validationInfo);
PadesBLTWithValidationInfoInCmsAndDSS("PAdES B-LT in DSS.pdf", addValidationInfoToCms: false, addValidationInfoToDss: true, ref validationInfo);
PadesBLTWithValidationInfoInCmsAndDSS("PAdES B-LT in CMS and DSS.pdf", addValidationInfoToCms: true, addValidationInfoToDss: true, ref validationInfo);

Here are our observations regarding those files:

  • PAdES B-LT in CMS.pdf: Valid signature in Edge browser.
    Adobe Reader reports its level as B-T instead of B-LT, but it still reports it as LTV enabled.
    Size: 391 KB.
  • PAdES B-LT in DSS.pdf: Unknown signature in Edge browser (Signer’s identity could not be verified).
    Adobe Reader reports its level as B-LT.
    Size: 385 KB.
  • PAdES B-LT in CMS and DSS.pdf: Valid signature in Edge browser.
    Adobe Reader reports its level as B-LT.
    Size: 395 KB.

Yes, an increase in PDF file size is certain when validation information is stored in both the CMS signature and the DSS because storage inside the CMS is not PDF streams and indirect objects (that can be shared via the indirect object reference), but DER encoded. And the increase might be substantial if CRLs are large. You should determine your approach based on the priority of your requirements. If Adobe Reader reporting the level as B-T instead of B-LT is not an issue, then add validation info just to the CMS signature. The signature will still be reported as LTV enabled (meaning that all data required for validating the signer’s certificate is contained in the file).

Regards,
Stipo

Hi,

Also, please use this latest NuGet package:

Install-Package GemBox.Pdf -Version 2026.11.105

Note that this is a hidden (unlisted) version. To install it, you’ll need to run the above command on the NuGet Package Manager Console (Tools → NuGet Package Manager → Package Manager Console).

Does this solve your issue?

Regards,
Mario

Hi Stipo and Mario,

Thank you both for your help and valuable guidance!

I’ve updated my PAdES-B-LT/LTA implementation, continuing to use my own Chain Builder for certificate chains and OCSP/CRL information.

When signing at the PAdES-B-LTA level, the necessary validation information is added to the Document Security Store (DSS) before creating the Document TimeStamp (DTS). Afterwards, the DSS is updated only if validation information for the new DTS is missing.

In that case, Microsoft Edge reports unauthorized document modifications, and I observed the same behavior with documents created using Adobe Acrobat. However, the documents validate successfully in Adobe Acrobat Reader, the ETSI Conformance Checker, and the EU DSS validator, which reports TOTAL_PASSED.

Thanks again to both of you for your help!

Best regards