Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-3699

Regression on signature with certification flag.

    Details

    • Type: Bug
    • Status: Open
    • Priority: Blocker
    • Resolution: Unresolved
    • Affects Version/s: 2.0.2, 2.0.3, 2.0.4
    • Fix Version/s: None
    • Component/s: Signing
    • Labels:
      None

      Description

      Hello,
      I got some problems signing a certified pdf with a signature with apparence: after the signature is applied the previous certification is reported as corrupted by Acrobat Reader. If I apply an invisible signature the issue doesn't happen.

      I have done a regression analysis using the same code

      • with pdfbox 2.0.0 and 2.0.1, the signature is not shown on the document but the certification is still valid
      • with earlier versions, the signature is shown on the document but the certification is broken

      The sample certified pdf (original_file.pdf) is in attachment.

      Finally this problem could be related to these tickets:
      1- PDFBOX-2816 (PDFBox makes disallowed changes when signing a signed document)
      2- PDFBOX-45 (Support incremental save)

      I tested my code with the test case file in 1 (acrosigned.pdf), and it works well.

        Attachments

        1. original_file.pdf
          74 kB
          Marco Monacelli
        2. signed_2.0.0_ok_previus_signature_but_invisible.pdf
          128 kB
          Marco Monacelli
        3. signed_2.0.4_previus_signature_ko_but_signature_visible.pdf
          125 kB
          Marco Monacelli
        4. TEST_PDFBOX_signed_module_acrobat_final_signature.pdf
          95 kB
          Marco Monacelli
        5. TEST_PDFBOX_signed_module_acrobat.pdf
          78 kB
          Marco Monacelli
        6. x_1a_certified_pdfbox_vis_itext.pdf
          85 kB
          Marco Monacelli

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              marcom1981@gmail.com Marco Monacelli
            • Votes:
              6 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated: