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 18FCA1794D for ; Wed, 27 May 2015 05:57:35 +0000 (UTC) Received: (qmail 53733 invoked by uid 500); 27 May 2015 05:57:34 -0000 Delivered-To: apmail-pdfbox-users-archive@pdfbox.apache.org Received: (qmail 53708 invoked by uid 500); 27 May 2015 05:57:34 -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 53696 invoked by uid 99); 27 May 2015 05:57:34 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 May 2015 05:57:34 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 1790AC9004 for ; Wed, 27 May 2015 05:57:34 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.15 X-Spam-Level: *** X-Spam-Status: No, score=3.15 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id IcXSQ61ROTvx for ; Wed, 27 May 2015 05:57:28 +0000 (UTC) Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com [209.85.212.169]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 9304B2580C for ; Wed, 27 May 2015 05:57:27 +0000 (UTC) Received: by wicmx19 with SMTP id mx19so98881746wic.0 for ; Tue, 26 May 2015 22:56:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=+PV70W1TC+JtNVAzH2I6Km7CTEQJF6wphdBEec1BlI8=; b=ac+3hxvQMxGpbxPgJYWU5e7O0AJthus1hkvnZWA4TUTWIzvFy+BbxR8j58on8XKu2d Pj7kPJKDQBKW4BUmYXHUwopStkk3oRUxXfGvOTB8GaBd7WeIMYyP5fArbTXL9S1dvqd8 bSn4PtU6kRKtTN5Gwl4P9ppIVqlYzmgYsXJQMgLrby5XlIOiu3Dw4lVNUzymnbeFwgdq h9poOBNTbIATiKjRBsdJqsePP6NT8VwaLcBNZkEEO8QRMhCfeYmj3PWpgUOEt8tT7f/3 qPDVOA7FZSKjjOl5NdvbEmZ6swGp2sU1594Ykilf5Ft7TdRNM2B1sbBU2I4kPa58reuC Qkbw== MIME-Version: 1.0 X-Received: by 10.180.219.42 with SMTP id pl10mr2523758wic.70.1432706195281; Tue, 26 May 2015 22:56:35 -0700 (PDT) Received: by 10.180.109.130 with HTTP; Tue, 26 May 2015 22:56:35 -0700 (PDT) In-Reply-To: <089E4BFB-8523-44ED-9ED5-817CF53061B6@fileaffairs.de> References: <089E4BFB-8523-44ED-9ED5-817CF53061B6@fileaffairs.de> Date: Wed, 27 May 2015 11:26:35 +0530 Message-ID: Subject: Re: Fillin forms after signing From: Suma Rani To: users@pdfbox.apache.org Content-Type: multipart/alternative; boundary=001a1135f990d65d19051709e73b --001a1135f990d65d19051709e73b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sorry. When i do saveIncremental, the signature is valid but the form field value is not changed. If I do save, the fiedvalue is correct, but the signatures fail. On Tue, May 26, 2015 at 6:09 PM, Maruan Sahyoun wrote: > Hi, > > > Am 26.05.2015 um 12:54 schrieb Suma Rani : > > > > Hello, > > > > I am trying to change a form after signing. The flow is like this: > > 1. add a form to the existing document > > 2. Fill some of the fields and sign it > > 3. Change the above fields/ fill some other fields and sign it again. > > > > 1 and 2 are done. no problem with that. But the signature becomes inval= id > > when I do the 3rd. > > what do you mean by invalid. Is it that you get a warning sign in Adobe > Reader or Acrobat? Or is it that the signature is corrupt =E2=80=A6. > > BR > Maruan > > > Both signatures are invisible and my first signature > > allows form fill-in. NO problem when i edit it with adobe reader. This = is > > the code I am using for the part 3. > > > > PDSignature signature =3D new PDSignature(); > > signature.setFilter(PDSignature.FILTER_ADOBE_PPKLITE); > > signature.setSubFilter(PDSignature.SUBFILTER_ADBE_PKCS7_DETACHED); > > signature.setReason("Signing second time"); > > signature.setSignDate(Calendar.getInstance()); > > > > PDAcroForm acroForm =3D doc.getDocumentCatalog().getAcroForm(); > > PDField field =3D acroForm.getField("field2"); > > COSString fieldValue =3D new COSString("FIELD2"); > > field.getDictionary().setItem(COSName.V, fieldValue); > > doc.addSignature(signature, this); > > doc.saveIncremental(fis, fos);// Of course, doc.save() wont work. > > doc.close(); > > > > In short, I would like to know how to add form fill-ins by > saveincremental > > > > Thanks > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org > For additional commands, e-mail: users-help@pdfbox.apache.org > > --001a1135f990d65d19051709e73b--