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

Redundant/incorrect code in PDVisibleSignDesigner.java

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.0.2, 2.0.3, 3.0.0 PDFBox
    • Fix Version/s: 2.0.3, 3.0.0 PDFBox
    • Component/s: PDModel
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: