Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id AD682200B89 for ; Wed, 21 Sep 2016 13:36:44 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id ABD40160ADB; Wed, 21 Sep 2016 11:36:44 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id EAF16160ACF for ; Wed, 21 Sep 2016 13:36:43 +0200 (CEST) Received: (qmail 30811 invoked by uid 500); 21 Sep 2016 11:36:43 -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 30794 invoked by uid 99); 21 Sep 2016 11:36:42 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Sep 2016 11:36:42 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 62FB91A079F for ; Wed, 21 Sep 2016 11:36:42 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.782 X-Spam-Level: * X-Spam-Status: No, score=1.782 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, SPF_SOFTFAIL=0.972, T_FROM_MISSP_DKIM=0.01] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id FAF2U9k1_fHY for ; Wed, 21 Sep 2016 11:36:40 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 95A955FE34 for ; Wed, 21 Sep 2016 11:36:39 +0000 (UTC) Received: from localhost (cust-asf.ponee.io [163.172.22.183]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 26CC8E0239 for ; Wed, 21 Sep 2016 11:36:37 +0000 (UTC) MIME-Version: 1.0 Message-ID: Subject: Re: Empty array when getting acroforms References: <0F928CBA-2C86-4747-BD16-7E5CB94DB13C@fileaffairs.de> From: "abogdanov@accusoft.com" In-Reply-To: <0F928CBA-2C86-4747-BD16-7E5CB94DB13C@fileaffairs.de> Content-Type: text/plain; charset="iso-8859-1" x-ponymail-sender: 9f9ec1f47e8bdba7aa1f4a89440d181756a2097e Date: Wed, 21 Sep 2016 11:36:37 -0000 x-ponymail-agent: PonyMail Composer/0.2 To: X-Mailer: LuaSocket 3.0-rc1 archived-at: Wed, 21 Sep 2016 11:36:44 -0000 Hi Maruan. You can download them from here: http://dropmefiles.com/TmVIu On 2016-09-21 13:37 (+0300), Maruan Sahyoun wrote: > Hi Andrew, > > > Am 21.09.2016 um 11:14 schrieb Andrew Bogdanov : > > > > Hi, Maruan. I'm attaching an original document (which is processed correctly) and merged one. > > as attachments are not allowed on that mailing list they didn't make it through. Could you upload them to a public location? > > BR > Maruan > > > > > > On 2016-09-19 17:03 (+0300), Maruan Sahyoun wrote: > > > Hi, > > > > > > > Am 19.09.2016 um 15:52 schrieb abogdanov@accusoft.com: > > > > > > > > But why then Acrobat DC renders those fields correctly in the same document? > > > > By going back to merging, is there a way to tell that document was merged from other documents or not? Does PDFBox treat them differently? > > > > > > would it be possible to upload pdf before and after merging to take a look? > > > > > > Acrobat treates annotations which also have a Widget entry in their dictionary as form fields although there is no AcroForm entry. If that is really the case here that would be a potential improvement to PDFBox to behave the same. It's long ago that I've seen such a document still being used tough. > > > > > > BR > > > Maruan > > > > > > > > > > > > > > On 2016-09-16 18:54 (+0300), Tilman Hausherr wrote: > > > >> Am 16.09.2016 um 17:04 schrieb Andrew Bogdanov: > > > >>> > > > >>> Hi. I'm trying to retrieve an Acroform data of the PDF by using this code: > > > >>> > > > >>> COSArray fields = > > > >>> (COSArray)this.acroForm.getDictionaryObject(COSName.getPDFName("Fields")); > > > >>> > > > >>> As a result I have got empty array, but this doc for sure have may > > > >>> filed inside, if I open this doc through the console using > > > >>> > > > >>> java -jar pdfbox-app-2.0.2.jsr PDFReader document_name.pdf > > > >>> I am able to see all fields, please see attach > > > >>> > > > >>> I noticed that such behavior is always happening when I'm trying to > > > >>> open document that was merged from several documents in Acrobat DC > > > >>> > > > >> > > > >> What you saw are widget annotations. But your acroform array is indeed > > > >> empty, so you have no fields. So go back to the last step, i.e. the merging. > > > >> > > > >> Tilman > > > >> > > > >> --------------------------------------------------------------------- > > > >> 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 > > > > > > > > > > > > > --------------------------------------------------------------------- > > > 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 > > > --------------------------------------------------------------------- > 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