[
https://issues.apache.org/jira/browse/PDFBOX-59?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
John Hewson updated PDFBOX-59:
------------------------------
Component/s: PDModel.AcroForm
> PDChoiceField setValue() #31
> ----------------------------
>
> Key: PDFBOX-59
> URL: https://issues.apache.org/jira/browse/PDFBOX-59
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel.AcroForm
>
> [imported from SourceForge]
> http://sourceforge.net/tracker/index.php?group_id=78314&atid=552832&aid=1205771
> Originally submitted by nobody on 2005-05-20 09:27.
> The "opt" tuple of a listbox/combobox is a COSArray.
> The elements of the array are either a simple
> COSString, or a COSArray of 2 COSStrings. (the latter
> represents a listbox item and a value)
> PDChoiceField.setValue assumes that the type of
> EVERY element in the "opt" array matches the type of
> the FIRST element in the "opt" array. This is not the
> case. Based on how the PDF form field was
> created, "opt" array contains a mix of both simple
> COSString elements and compound COSArray
> elements.
> The setValue() code must be restructured to check the
> type of each item in the "opt" array.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)