I have a form that the end user can attach multiple files to the form and that is annotated into a list box. I know how to remove all the attachments and already have that set on a button. What I am wanting to do (and just finding no way to do it) is select a single file from the list box and remove just that file when the button is clicked.
Any suggestions would be wonderful.
Attachments are "data objects", and you can remove one using the Doc.removeDataObject() method: Acrobat DC SDK Documentation - Doc.removeDataObject()
All you need to do is pass in the name of your data object and it should be gone.
what do you mean pass in the name?
I am trying to teach myself as i go.
You use the attachment name for the paramrter used by the method.