I'm having a little trouble figuring out how to dynamically add items to a ComboBox on a PDF. I've tried to use the code I found here. Basically, I'm just running the following code:
Dim MyEditor As New FormEditor("Source.pdf", "Output.pdf")
MyEditor.Items = New String() {"item0", "item1", "item2", "item3"}
MyEditor.AddField(FieldType.ComboBox, "combobox1", 1, 350, 650, 450, 675)
MyEditor.Save()
The ComboBox is added, but the items are not. I'm not sure what the problem is as this seems to follow the example code. I do find it strange that the ComboBox field does not need to be linked up with the items in some way. Does the FormEditor just assume the most recent Items added correspond to the ComboBox?? Is there something wrong with this code? If so, could someone provide an example of working code that creates a ComboBox and adds items to it?
Also, is it possible to add items to an existing ComboBox, e.g. we have PDFs which have ComboBoxes defined on them, but they are empty. Our application populates the values in the ComboBox dynamically. Can we do this with Aspose?