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

Bad sizing of signature field inside rotated page

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.12
    • 2.0.13, 3.0.0 PDFBox
    • Signing
    • None

    Description

      From Patrick Herber in the user mailing list:

      I have some problems with the sizing of a signature field inside a rotated document page (90
      degrees).
      If instead of specifying the zoom factor (as in the CreateVisibleSignature example) I specify
      the desired height and width of the signature, the resulting image has completely wrong dimensions:

      visibleSignDesigner.xAxis(x).yAxis(y).height(height).width(width).adjustForRotation();
      

      If the page is not rotated or if I remove the call to adjustForRotation() then the image is
      correctly displayed (in case of rotated document of course rotated but with the correct proportions).

      The problem is that adjustForRotation() is hard-coded for 200 x 100 size (zoomed at 50%).

      Attachments

        Activity

          People

            tilman Tilman Hausherr
            tilman Tilman Hausherr
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: