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

Generate appearance stream for multiselect listboxes

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.6
    • Fix Version/s: 2.0.7, 3.0.0 PDFBox
    • Component/s: AcroForm
    • Labels:
      None

      Description

      AppearanceGeneratorHelper.insertGeneratedSelectionHighlight() does not yet support multiselect listboxes. Two other problems are that the positions are incorrect (at least with the attached file), and that it insists on having at least one element selected. IMHO it is allowed to have none element selected in a listbox, see attached "empty" file, which I created by saving a file with Adobe Reader that had "needAppearances" set.

      I expanded the existing code for multiselect, and corrected the position problem with some trial-and-error.

        Attachments

        1. SO44456172-AcroForm-empty.pdf
          25 kB
          Tilman Hausherr
        2. SO44456172-AcroForm.pdf
          46 kB
          Tilman Hausherr

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: