I have listbox on PDF.
User will select multiple options from listbox.
I need to upload PDF to database.
I am unable to retrieve selected indices from listbox using iTextSharp? I tried with
SetListSelection("listbox", PreviousExport.ToArray) but no luck.
How to retrieve user selected indices from listbox on PDF using itextsharp?
Code from comments:
I am using below code to load listbox .. This is from database
form.SetListOption("ddlNoteStatus", strbuilderExport.ToArray, strbuilderDisplay.ToArray)
stamper.AcroFields.SetField("ddlNoteStatus", "3")
I am able to retrieve other fields from pdf which are not of listbox with below code. But if I use same code for list box only last value selected from list box shows but not all values selected by user
stamper.AcroFields.GetField("txtDateFollow")