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 49D6417F0C for ; Sun, 26 Apr 2015 20:39:39 +0000 (UTC) Received: (qmail 70882 invoked by uid 500); 26 Apr 2015 20:39:39 -0000 Delivered-To: apmail-pdfbox-users-archive@pdfbox.apache.org Received: (qmail 70858 invoked by uid 500); 26 Apr 2015 20:39:39 -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 70845 invoked by uid 99); 26 Apr 2015 20:39:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Apr 2015 20:39:38 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: message received from 54.76.25.247 which is an MX secondary for users@pdfbox.apache.org) Received: from [54.76.25.247] (HELO mx1-eu-west.apache.org) (54.76.25.247) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Apr 2015 20:39:11 +0000 Received: from mailout05.t-online.de (mailout05.t-online.de [194.25.134.82]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 38E7824B18 for ; Sun, 26 Apr 2015 20:38:05 +0000 (UTC) Received: from fwd27.aul.t-online.de (fwd27.aul.t-online.de [172.20.26.132]) by mailout05.t-online.de (Postfix) with SMTP id 973A32BAA33 for ; Sun, 26 Apr 2015 22:38:04 +0200 (CEST) Received: from [192.168.2.102] (TzqpyaZJYhMgOhCTB0POgMhB0U2Ye-YPA8x0kVSFVX1fS2GlfRbl60p8mSdxzstgtJ@[217.231.131.44]) by fwd27.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-SHA encrypted) esmtp id 1YmTJP-2LgLSa0; Sun, 26 Apr 2015 22:37:59 +0200 Message-ID: <553D4CE6.1080905@t-online.de> Date: Sun, 26 Apr 2015 22:39:02 +0200 From: Tilman Hausherr User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: users@pdfbox.apache.org Subject: Re: PDFBox detecting checked/unchecked checkboxes References: <553C8500.4080101@t-online.de> <553D3F36.5080100@t-online.de> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-ID: TzqpyaZJYhMgOhCTB0POgMhB0U2Ye-YPA8x0kVSFVX1fS2GlfRbl60p8mSdxzstgtJ X-TOI-MSGID: 3c64e091-2605-48b0-93b7-f7489f3840d0 X-Virus-Checked: Checked by ClamAV on apache.org I looked at your file... it doesn't have acroforms. So we're back to square one. So what you could do is either to use text extraction (to test whether these boxes are glyphs), or graphic method you mentioned at the beginning. However I just tried text extraction, but I didn't get the boxes. This suggests that these are graphics. If your job is to evaluate lots of PDF files like this one, you could do it with graphics, but only if these PDFs are really identical except for the boxes. Tilman Am 26.04.2015 um 21:56 schrieb Andrew Munn: >>> 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 >> Could you please mention what version you are using (even if you already did >> before), and upload the file somewhere? > I have these in my path: > > levigo-jbig2-imageio-1.6.3.jar > pdfbox-app-2.0.0-20150420.221011-1230.jar > > I will email you the PDF because my web server is down for a bit. > > Thanks! > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org > For additional commands, e-mail: users-help@pdfbox.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org For additional commands, e-mail: users-help@pdfbox.apache.org