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 CD2FF17899 for ; Sun, 26 Apr 2015 16:55:56 +0000 (UTC) Received: (qmail 65633 invoked by uid 500); 26 Apr 2015 16:55:56 -0000 Delivered-To: apmail-pdfbox-users-archive@pdfbox.apache.org Received: (qmail 65607 invoked by uid 500); 26 Apr 2015 16:55:56 -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 65596 invoked by uid 99); 26 Apr 2015 16:55:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Apr 2015 16:55:56 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: message received from 54.164.171.186 which is an MX secondary for users@pdfbox.apache.org) Received: from [54.164.171.186] (HELO mx1-us-east.apache.org) (54.164.171.186) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Apr 2015 16:55:48 +0000 Received: from ref.nmedia.net (ref.nmedia.net [204.80.187.146]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTP id CB3D4428ED for ; Sun, 26 Apr 2015 16:55:27 +0000 (UTC) Received: by ref.nmedia.net (Postfix, from userid 1022) id E8F4948F472; Sun, 26 Apr 2015 09:54:50 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by ref.nmedia.net (Postfix) with ESMTP id E80B248F441 for ; Sun, 26 Apr 2015 09:54:50 -0700 (PDT) Date: Sun, 26 Apr 2015 09:54:50 -0700 (PDT) From: Andrew Munn To: users@pdfbox.apache.org Subject: Re: PDFBox detecting checked/unchecked checkboxes In-Reply-To: <553C8500.4080101@t-online.de> Message-ID: References: <553C8500.4080101@t-online.de> User-Agent: Alpine 2.20 (BSO 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org On Sun, 26 Apr 2015, Tilman Hausherr wrote: > Am 26.04.2015 um 07:10 schrieb Andrew Munn: > > Is there some trick to this stuff that I should know? > > Yes, "acroform". See the PrintFields example in the source package :-) > I think I looked at that a while back and didn't get anyplace. I just tried to run the PrintFields app and I get a NullPointerException. I am thinking the checkboxes in my form are just stored as black squares, not completed form fields. Is that possible? PDDocumentCatalog docCatalog = pdfDocument.getDocumentCatalog(); PDAcroForm acroForm = docCatalog.getAcroForm(); // returns null List fields = acroForm.getFields(); //NPE here --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org For additional commands, e-mail: users-help@pdfbox.apache.org