Re: Setting the value of a single-select PDChoice field

2021-08-17 Thread Oliver Degener
@Tilman I agree that setting an illegal option is the only bug here. The other issue is more a matter of convenience. In my case I'm mapping HTML form data to PDFs, to be precise: input from fields to PDChoice / PDComboBox fields. Both fields can be single or multi-valued. Ideally, I would wor

Re: Setting the value of a single-select PDChoice field

2021-08-16 Thread sahy...@fileaffairs.de
If I understand the question correctly it's about being able to use the List based setter with a single select option field if the List has a single entry. If the List has more than one entry still throw the exception. Is that correct? BR Maruan Am Dienstag, dem 17.08.2021 um 04:47 +0200 schrieb

Re: Setting the value of a single-select PDChoice field

2021-08-16 Thread Tilman Hausherr
IMHO the only bug is that a setter can set an illegal option. The rest looks fine to me, a user should know what field they are filling. Tilman Am 16.08.2021 um 18:10 schrieb Oliver Degener: Hi, I'm using PDFBox to automatically fill in all kinds of PDF documents. Recently, I was seeing the

Setting the value of a single-select PDChoice field

2021-08-16 Thread Oliver Degener
Hi, I'm using PDFBox to automatically fill in all kinds of PDF documents. Recently, I was seeing the following error message with a new PDF: 'The list box does not allow multiple selections.' I saw in the code that the PDChoice field can be single-select or multi-select. With single-select fiel