From users-return-12212-archive-asf-public=cust-asf.ponee.io@pdfbox.apache.org Fri Jan 17 00:08:37 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 1D5D918060E for ; Fri, 17 Jan 2020 01:08:37 +0100 (CET) Received: (qmail 78458 invoked by uid 500); 17 Jan 2020 00:08:36 -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 78438 invoked by uid 99); 17 Jan 2020 00:08:35 -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; Fri, 17 Jan 2020 00:08:35 +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 E98CA1A4271 for ; Fri, 17 Jan 2020 00:08:33 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.201 X-Spam-Level: X-Spam-Status: No, score=0.201 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=itgfirm-com.20150623.gappssmtp.com Received: from mx1-he-de.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id ImCAqwBbj_kM for ; Fri, 17 Jan 2020 00:08:29 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2607:f8b0:4864:20::82f; helo=mail-qt1-x82f.google.com; envelope-from=robert.pepersack@itgfirm.com; receiver= Received: from mail-qt1-x82f.google.com (mail-qt1-x82f.google.com [IPv6:2607:f8b0:4864:20::82f]) by mx1-he-de.apache.org (ASF Mail Server at mx1-he-de.apache.org) with ESMTPS id BCB707DDE8 for ; Fri, 17 Jan 2020 00:08:28 +0000 (UTC) Received: by mail-qt1-x82f.google.com with SMTP id 5so20488232qtz.1 for ; Thu, 16 Jan 2020 16:08:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=itgfirm-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=0E1dIatY0DiJQiiCcMpXHemLiNgoVei+6JgZDl3PInw=; b=gKVYHU2vgu5vzDBdgVzJeNsNEJxxNpZuk7i73ylLlt5N4j+k1QFFicN8/gr59CKSEh TiDVFKjksGQ52RuoZUZHfJGqTDbQyGxvaBMHrac20ayrMna0W6kfKmmIA6dAO0nrn3cg qgMlX2BYjWxrp8hwrekWusI/boPDa3qdSCvF3Bhk0oaG1VhEG8dTsQ9ZcYT6lrm1N6S5 RUzYZDiUCSG3SENC9AFlhksiFjMoLPjLkGcowiJoauOu3EqrfLyL/AAJ6BW6WRFYby/d e98fNFV1EA/xkgGUjumvwPUaS3rtNOmOCqSxc0HVGI9KzjfwSeCj4k1fLPgSB6goppro d2Kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=0E1dIatY0DiJQiiCcMpXHemLiNgoVei+6JgZDl3PInw=; b=qqNERCebkhYcBlod/Q5EHxSDN5DPNGpYM8k1QO6H28LDydpiGKRZt4Q7eo/EAvPbiE o4lh9PdEsAsT5kBFF5O+tC7P6kzv1g2e3lCT7h5i/HplmyTb7MsqFkmBrhXxb2iK2az/ osMQ7GqwDrRSZu8jmp86m1Rc/TkmaEjjZgHJsqPY5MPIim2R7wRbKrTJQNXECxjC3zey pz7ho4vmme3M4prhOqpumwPmKMRbX1b5heodcC1AQte+r135EJx3fVuDYdaKrvVVPdg0 d1DS+mi46fssQieO67KXFTM1CexAf34h9CAKdIJLvsXhoJAYNF5Ti4AaKB5i1ibn1Lv5 3zCA== X-Gm-Message-State: APjAAAU+BbpejBAvWF7UYRDEO7I389NHAQThr3H/BLopjDaqmXMsaKx5 OViB5ozKAmWU7oFfg6uncWo6HMpwsN6bNo4sg80olXFqS0g= X-Google-Smtp-Source: APXvYqwAXwmWUDe7biSChuQ0KwGn1Qm/N/z8SV7nqFrIXvEoUKRhnN9uJPEo3y1cC9jZdwjrfr7kLPd4Q9+aVhz+HCk= X-Received: by 2002:ac8:30f7:: with SMTP id w52mr5033463qta.380.1579219707151; Thu, 16 Jan 2020 16:08:27 -0800 (PST) MIME-Version: 1.0 From: Robert Pepersack Date: Thu, 16 Jan 2020 19:08:15 -0500 Message-ID: Subject: Changing Partial Name of PDNonTerminalField Changes Parent's Name To: users@pdfbox.apache.org, Christopher Williams Content-Type: multipart/mixed; boundary="000000000000ab0ece059c4abd5c" --000000000000ab0ece059c4abd5c Content-Type: multipart/alternative; boundary="000000000000ab0ecc059c4abd5a" --000000000000ab0ecc059c4abd5a Content-Type: text/plain; charset="UTF-8" Hi all, Thanks in advance for your help. I have a PDF file that has form fields named using the hierarchical naming convention. For example: table.0.firstName, table.0.middleName, table.0.lastName, table.1.firstName, table.1.middleName, table.1.lastName, etc. I'm changing the numeric nodes' partial names using: field.setPartialName(newName) After that, I check the new field names, and they are renamed correctly (see the attached output.txt). So, it seems that it worked. Then, I'm merging the document after another document using: PDFMergerUtility.mergeDocuments(null) But, when I open the newly created (merged) PDF file in Acrobat Pro, all the field names have names like "dummyFieldName" (the incorrect part) followed by "1.0A.firstName" (the correct part), instead of the names in the attached output.txt. I have attached the PDF file that I'm changing names in, Attachment.pdf, and the new file after merging, test.pdf. Thanks, Rob --000000000000ab0ecc059c4abd5a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi all,

Thanks in=C2=A0advance for your= help.

I have a PDF file that has form fields name= d using the hierarchical naming convention.=C2=A0 For example:
ta= ble.0.firstName, table.0.middleName, table.0.lastName,
table.1.fi= rstName, table.1.middleName, table.1.lastName, etc.=C2=A0

I'm changing the numeric nodes' partial names using:=C2=A0 = field.setPartialName(newName)

After that, I check = the new field names, and they are renamed correctly (see the attached outpu= t.txt).=C2=A0 So, it seems that it worked.

Then, I= 'm merging the document after another document using:=C2=A0=C2=A0PDFMer= gerUtility.mergeDocuments(null)

But, when I open t= he newly created (merged) PDF file in Acrobat Pro, all the field names have= names like "dummyFieldName" (the incorrect part) followed by &qu= ot;1.0A.firstName" (the correct part), instead of the names in the att= ached output.txt.

I have attached the PDF file tha= t I'm changing names in, Attachment.pdf, and the new file after merging= , test.pdf.

Thanks,
Rob
--000000000000ab0ecc059c4abd5a-- --000000000000ab0ece059c4abd5c Content-Type: text/plain; charset="US-ASCII"; name="output.txt" Content-Disposition: attachment; filename="output.txt" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_k5he7t660 dGFibGUNCnRhYmxlLjANCnRhYmxlLjAuZmlyc3ROYW1lDQp0YWJsZS4wLm1pZGRsZU5hbWUNCnRh YmxlLjAubGFzdE5hbWUNCnRhYmxlLjAuZG9iDQp0YWJsZS4wLmdlbmRlcg0KdGFibGUuMC5hY3Rp dmUNCnRhYmxlLjENCnRhYmxlLjEuZmlyc3ROYW1lDQp0YWJsZS4xLm1pZGRsZU5hbWUNCnRhYmxl LjEubGFzdE5hbWUNCnRhYmxlLjEuZG9iDQp0YWJsZS4xLmdlbmRlcg0KdGFibGUuMS5hY3RpdmUN CnRhYmxlLjINCnRhYmxlLjIuZmlyc3ROYW1lDQp0YWJsZS4yLm1pZGRsZU5hbWUNCnRhYmxlLjIu bGFzdE5hbWUNCnRhYmxlLjIuZG9iDQp0YWJsZS4yLmdlb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GxlTmFtZQ0KdGFibGUuM0EubGFzdE5hbWUNCnRhYmxlLjNBLmRvYg0K dGFibGUuM0EuZ2VuZGVyDQp0YWJsZS4zQS5hY3RpdmU= --000000000000ab0ece059c4abd5c Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org For additional commands, e-mail: users-help@pdfbox.apache.org --000000000000ab0ece059c4abd5c--