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

Can't sign pdf with a particular attachment

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.12
    • Fix Version/s: 1.8.13
    • Component/s: Signing
    • Labels:
      None

      Description

      We have a few problematic PDF files which the Adobe Reader opens without any error but when we attach them with PDFBox 1.8.12 to any other PDF and try to sign the file with the attachment, it throws an exception and the signing fails.
      The thrown exception is:
      org.apache.pdfbox.exceptions.SignatureException: The PDF file has no pages

      If we use PDFBox 2.0.2 to attach, the signing succeeds.

      Unfortunately we cannot publish the PDFs, they have confidential informations.

        Attachments

        1. 12_Cegkivonat_BOXPRINT.pdf
          66 kB
          Daniel Zsigus
        2. helloworld-attached-fail-1.8.12.pdf
          327 kB
          Daniel Zsigus
        3. helloworld-attached-2.0.2.pdf
          327 kB
          Daniel Zsigus
        4. helloworld-attached-1.8.13.pdf
          327 kB
          Daniel Zsigus

          Activity

            People

            • Assignee:
              tilman Tilman Hausherr
              Reporter:
              zsigusd Daniel Zsigus
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: