I am using PDFBox library to set the Values in PDF.

code block through I am trying to set values in ListBox

PDListBox listBox = (PDListBox) field;if (listBox.isMultiSelect()) {
  List<String> list = Arrays.asList("option 1","option 2");
  listBox.setValue(list);}

in result it shows only first value is selected from List<String> in PDF.
check result here https://i.stack.imgur.com/HvxU8.png .

How can I set multiple value selected in PDF?

Reply via email to