You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2017/06/12 15:31:02 UTC

[jira] [Created] (PDFBOX-3827) Setting empty values on listbox keeps marked item

Tilman Hausherr created PDFBOX-3827:
---------------------------------------

             Summary: Setting empty values on listbox keeps marked item
                 Key: PDFBOX-3827
                 URL: https://issues.apache.org/jira/browse/PDFBOX-3827
             Project: PDFBox
          Issue Type: Bug
          Components: AcroForm
    Affects Versions: 2.0.6
            Reporter: Tilman Hausherr
            Assignee: Tilman Hausherr
             Fix For: 2.0.7, 3.0.0


{code:java}
PDListBox multiListBox = (PDListBox) acroForm.getField("multiple_listbox");
multiListBox.setValue(new ArrayList<>());
{code}
When looking at the file with Adobe Reader, there is still an element selected.

The cause is that the /I entry isn't removed.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org