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

Generate appearance stream for multiselect listboxes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.6
    • 2.0.7, 3.0.0 PDFBox
    • AcroForm
    • 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.pdf
          46 kB
          Tilman Hausherr
        2. SO44456172-AcroForm-empty.pdf
          25 kB
          Tilman Hausherr

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: