Using <select multiple=""> to populated text field in PDF

时间:2015-10-30 23:21:52

标签: html xml pdf xml-parsing pdf-generation

I have 3 files: and html file, a XML file, and a PDF form. I have the PDF auto populating from the data entered into the html via the XML code. I need to have a drop down menu where I can select multiple items and have them auto populate into a text field in the PDF form. Is this possible?

1 个答案:

答案 0 :(得分:0)

如果您使用的是设置了多个选择标志的列表框(而不是仅允许单个选择的组合框),则可以这样做。

最有可能在目标(多行)文本字段中评估列表框的currentValueIndices属性,并使用从那里获得的索引通过getItemAt()方法读取值。那些,你可以写入你的文本字段。

另请参阅Acrobat JavaScript文档。