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

Redundant/incorrect code in PDVisibleSignDesigner.java

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.0.2, 2.0.3, 3.0.0 PDFBox
    • 2.0.3, 3.0.0 PDFBox
    • PDModel
    • None

    Description

      org/apache/pdfbox/pdmodel/interactive/digitalsignature/visible/PDVisibleSignDesigner.java contains the following in the calculatePageSize method:

          float x = pageWidth;
          float y = 0;
          pageWidth += y;
          float tPercent = (100 * y / (x + y));
          imageSizeInPercents = 100 - tPercent;
      

      I can't see how this would result in anything but an imageSizeInPercents of 100.

      Attachments

        Activity

          People

            tilman Tilman Hausherr
            vittala Vittal Aithal
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: