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

Listbox controls render incorrectly in Adobe Acrobat or Adobe Reader

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.6
    • Fix Version/s: 1.8.7
    • Component/s: AcroForm
    • Labels:
    • Environment:
      Windows 7

      Description

      I have a form with a listbox. I update the value in the listbox using the following code:

      PDChoiceField c = (PDChoiceField)f;
      ((PDChoiceField)f).setValue("2");

      I have a combo box that uses the same choices, and it works fine. The issue has to do with the rendering of the field. The update of the value (i.e. setValue method) works fine, but when I look at the resulting output PDF the choices have become unreadable because the font has gone way large.

      I have searched the mailing list, and posted a question regarding this that no one has answered, so I am now assuming this is an unknown bug.

      Thanks

        Attachments

        1. JMAC_PDFBOX_out.pdf
          1.02 MB
          John McDonald
        2. JMAC_PDFBOX_out1.jpg
          291 kB
          Tilman Hausherr
        3. JMACTest_updated.png
          14 kB
          Maruan Sahyoun
        4. JMACTest.mod.png
          32 kB
          Maruan Sahyoun
        5. JMACTest.pdf
          1.00 MB
          John McDonald
        6. ListboxAcrobat.png
          17 kB
          Maruan Sahyoun
        7. ListboxPDFBox.png
          17 kB
          Maruan Sahyoun
        8. PDFBoxUtil.java
          4 kB
          John McDonald
        9. PDFFormFields.pdf
          1.07 MB
          Maruan Sahyoun

          Issue Links

            Activity

              People

              • Assignee:
                msahyoun Maruan Sahyoun
                Reporter:
                jmac@Emericon.com John McDonald
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: