Return-Path: X-Original-To: apmail-pdfbox-users-archive@www.apache.org Delivered-To: apmail-pdfbox-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CF74319453 for ; Wed, 9 Mar 2016 08:03:21 +0000 (UTC) Received: (qmail 45468 invoked by uid 500); 9 Mar 2016 08:03:21 -0000 Delivered-To: apmail-pdfbox-users-archive@pdfbox.apache.org Received: (qmail 45446 invoked by uid 500); 9 Mar 2016 08:03:21 -0000 Mailing-List: contact users-help@pdfbox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@pdfbox.apache.org Delivered-To: mailing list users@pdfbox.apache.org Received: (qmail 45425 invoked by uid 99); 9 Mar 2016 08:03:20 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Mar 2016 08:03:20 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 2886E1804E3 for ; Wed, 9 Mar 2016 08:03:20 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.82 X-Spam-Level: X-Spam-Status: No, score=-0.82 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=lehmi.de Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id itCI-XMTxl1B for ; Wed, 9 Mar 2016 08:03:17 +0000 (UTC) Received: from mo4-p00-ob.smtp.rzone.de (mo4-p00-ob.smtp.rzone.de [81.169.146.219]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 6A6295F2C3 for ; Wed, 9 Mar 2016 08:03:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1457510591; l=1232; s=domk; d=lehmi.de; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Subject: References:In-Reply-To:To:Reply-To:From:Date; bh=tlzUvD6/d1resikAjFM5UnRdZ89r1R5UxfTIVzy4XEs=; b=HJJUcMBNt6FqLxbJeRgaFZ47LA+a4msDSx2d9pIL4+nQKZyDqJRtxsLZ35nkrC56AgX qzxXuJbpdjyezDKw9sBSnTINlKP5xfq00SZhFFJDh4/Y26OTp6JUsr8N5lo4WZ0IhDBxQ 5CdMz70TWN3xGVy8/U8EqtUsgIM6TApFSoY= X-RZG-AUTH: :LWIAZ0WpaN8UY5o8XRz0jOyrHsdLFu/Eofc5177QYpz2qXXhjsXpYVO4Ug== X-RZG-CLASS-ID: mo00 Received: from omgreatgod.store (com4.strato.de [81.169.145.237]) by smtp-ox.front (RZmta 37.21 AUTH) with ESMTPSA id 5026f3s2983AVej (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate) for ; Wed, 9 Mar 2016 09:03:10 +0100 (CET) Date: Wed, 9 Mar 2016 09:03:10 +0100 (CET) From: =?UTF-8?Q?Andreas_Lehmk=C3=BChler?= Reply-To: =?UTF-8?Q?Andreas_Lehmk=C3=BChler?= To: users@pdfbox.apache.org Message-ID: <703184033.1115005.1457510590988.JavaMail.open-xchange@omgreatgod.store> In-Reply-To: References: Subject: Re: Fields and "]" + Checkboxes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.6.2-Rev49 X-Originating-Client: open-xchange-appsuite Hi, > Al Grant hat am 8. M=C3=A4rz 2016 um 18:57 geschrieb= en: >=20 >=20 > Morning All, >=20 > I have been writing some Java with PDFBox for a few weeks now. Its been > very good so far. >=20 > My goal is to loop through all the fields in a form, grab the values and > write the value to a corresponding field in a DB. By and large I have thi= s > working. >=20 > I however have two questions: >=20 > 1. When importing the value of a combobox I am getting the value enclosed > in square braces. Anyone know why - or do I need to handle this > progmatically? getValue provides a list of strings as return value which leads to the desc= ribed string presentation with square braces. That list contains the selected val= ue or several values if multiselect is allowed and more than one value is selecte= d. > 2. The code so far loops through all the fields and grabs strings - but I > am not sure how to handle exclusive checkboxes (ie only one value selecte= d > allowed). I didn't get your point, but hopefully my answer to your first question ans= wers this one too? ;-) > Cheers >=20 > -Al >=20 >=20 > --=20 > "Beat it punk!" > - Clint Eastwood BR Andreas --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org For additional commands, e-mail: users-help@pdfbox.apache.org