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 05FA6200B87 for ; Mon, 19 Sep 2016 15:54:32 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 048EA160ACC; Mon, 19 Sep 2016 13:54:32 +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 42707160ABC for ; Mon, 19 Sep 2016 15:54:31 +0200 (CEST) Received: (qmail 4866 invoked by uid 500); 19 Sep 2016 13:54:30 -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 Delivered-To: moderator for users@pdfbox.apache.org Received: (qmail 2892 invoked by uid 99); 19 Sep 2016 13:53:01 -0000 X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.972 X-Spam-Level: X-Spam-Status: No, score=0.972 tagged_above=-999 required=6.31 tests=[SPF_SOFTFAIL=0.972] autolearn=disabled MIME-Version: 1.0 Message-ID: Subject: Re: Empty array when getting acroforms References: <049584fc-b923-0d65-5067-ece5f9a14f8f@t-online.de> From: "abogdanov@accusoft.com" In-Reply-To: <049584fc-b923-0d65-5067-ece5f9a14f8f@t-online.de> Content-Type: text/plain; charset="iso-8859-1" x-ponymail-sender: 9f9ec1f47e8bdba7aa1f4a89440d181756a2097e Date: Mon, 19 Sep 2016 13:52:56 -0000 x-ponymail-agent: PonyMail Composer/0.2 To: X-Mailer: LuaSocket 3.0-rc1 archived-at: Mon, 19 Sep 2016 13:54:32 -0000 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? 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