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

CreateVisibleSignature2 not working anymore

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0 PDFBox
    • Fix Version/s: 3.0.0 PDFBox
    • Component/s: Signing
    • Labels:
      None

      Description

      CreateVisibleSignature2 does not add a visible signature to a given PDF anymore (e.g. when using the file "minimum.pdf" attached to issue 5068 https://issues.apache.org/jira/browse/PDFBOX-5068 )

      The reason can be found in commit 45f11130 (PDFBOX-5170: preserve the information whether a parsed COSDicionary is direct or not so that COSWriter can take this into account when saving the pdf Andreas Lehmkühler 05.06.21, 13:46).

      When commenting/removing line 206 in BaseParser::parseCOSDictionary

      obj.setDirect(isDirect);
      

      it is working again.

      I checked it also with other PDFs.

      CC: Andreas Lehmkühler

       

       

        Attachments

          Activity

            People

            • Assignee:
              lehmi Andreas Lehmkühler
              Reporter:
              rol.bo robo
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: