You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "John Hewson (JIRA)" <ji...@apache.org> on 2014/10/11 00:46:34 UTC

[jira] [Closed] (PDFBOX-59) PDChoiceField setValue() #31

     [ https://issues.apache.org/jira/browse/PDFBOX-59?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Hewson closed PDFBOX-59.
-----------------------------
    Resolution: Not a Problem

Looks like this was dealt with long ago.

> PDChoiceField setValue() #31
> ----------------------------
>
>                 Key: PDFBOX-59
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-59
>             Project: PDFBox
>          Issue Type: Bug
>          Components: 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.3.4#6332)