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 38C0E184E3 for ; Tue, 19 Jan 2016 19:53:00 +0000 (UTC) Received: (qmail 47341 invoked by uid 500); 19 Jan 2016 19:52:59 -0000 Delivered-To: apmail-pdfbox-users-archive@pdfbox.apache.org Received: (qmail 47319 invoked by uid 500); 19 Jan 2016 19:52:59 -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 47307 invoked by uid 99); 19 Jan 2016 19:52:59 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jan 2016 19:52:59 +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 E9EF8C3348 for ; Tue, 19 Jan 2016 19:52:58 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.898 X-Spam-Level: ** X-Spam-Status: No, score=2.898 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-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-eu-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 Dja8kswJRAlr for ; Tue, 19 Jan 2016 19:52:57 +0000 (UTC) Received: from mail-qg0-f41.google.com (mail-qg0-f41.google.com [209.85.192.41]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 4E1F0203BE for ; Tue, 19 Jan 2016 19:52:57 +0000 (UTC) Received: by mail-qg0-f41.google.com with SMTP id 6so509697655qgy.1 for ; Tue, 19 Jan 2016 11:52:57 -0800 (PST) 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=1BQ+ZuVfTe2raTl3JRuJ4g2OkUbD2QWlKKPWk9wVZHs=; b=EIKfX4sZ2Xyq56JsPU/mxcqr0WUaFVc/q3ZwU4PplkhYdIbfY1JIMeCvAot7zUTVet Rmn6Hf6tqwy2llEEvunlfF9NXHnuTBIg2mv++cO3RPezKMT/tyBwu+5EQXD2ohambuz8 Mi8Tr1cI0zfPhMNQcgrrcYYmUAVyLwpWHak0LGsMDD7+uz8skPekrpWLQDi18dM4RiOo 9juohWN1kqYeWUCIyC6Be653U6IGnFiRfkm1Vg/H31zWgPdectR0lUM3n5cqWFCT9DQD 9AnrM/z0QljqkLFt7zQZWhN25zsCWaT6/0pAY1o+tCa4OaAkvyeWXQ+sBcUWYuNl3pJR Cntg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=1BQ+ZuVfTe2raTl3JRuJ4g2OkUbD2QWlKKPWk9wVZHs=; b=jozaRn7Qv1QEjSh64BcxzNY8odycIaAWhOwHlSSqxWvWCAefjYSHlcYQyOPVBzQ3SL fqFUunv+Apt45wghuUDhHJP/3gyNkCiL7reSN5qIoprKctqDqdqUoM37YfEiOFY3sCCn a70i9LY8VCAV2ks+yULbDBRj9gobpRwnUvIiHniZY1N7fI39bupaVLNa0r2DcBdBS9Uk LC76XBYBuH8csnbCJVvjklhtyPpaEauVkcxk14eNkUCUMVWyMZNd6nSRyyjNTGfSMSdH CkuPWDTF7Azmnf9QnQg1GW35KBTuJsAPcHnWAncpBh/qrbhcGAmBsmOMUNBikVsEghx1 7jbw== X-Gm-Message-State: ALoCoQnms6FBbNzrlEIog7zEI6FAtpH9bnr7f9CTPz0rYV/UXCJOhJ6tFeXg0wGX9T1ZScBvu6mEJb/Jqc3bI9JazqPXJV5tPQ== MIME-Version: 1.0 X-Received: by 10.140.252.212 with SMTP id x203mr41717610qhc.48.1453233170237; Tue, 19 Jan 2016 11:52:50 -0800 (PST) Received: by 10.55.150.70 with HTTP; Tue, 19 Jan 2016 11:52:50 -0800 (PST) In-Reply-To: <569E712D.3010603@t-online.de> References: <567842F1.9070406@t-online.de> <56784639.2000606@t-online.de> <567848CC.5070504@t-online.de> <56784ED9.3030103@t-online.de> <56785149.8020806@t-online.de> <569E712D.3010603@t-online.de> Date: Tue, 19 Jan 2016 23:52:50 +0400 Message-ID: Subject: Re: HOW-TO Question: Signing pdf document, that is already been signed. From: =?UTF-8?B?0JPQu9C10LEg0JMu0JMu?= To: users@pdfbox.apache.org Content-Type: multipart/alternative; boundary=001a113a07fee3507d0529b53666 --001a113a07fee3507d0529b53666 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thank you, I'll will update my libraries to rc3 2016-01-19 21:23 GMT+04:00 Tilman Hausherr : > Am 19.01.2016 um 17:59 schrieb =D0=93=D0=BB=D0=B5=D0=B1 =D0=93.=D0=93.: > >> Dear mr. Hausherr! >> >> You've posted a comment, that my solution is incorrect, because I change >> and save initial encrypted PDF file before signing. >> Can you please provide some sample code how should I do it right way? >> > > Well, after the change (which is in 2.0 RC3), you can simply sign the > files as shown in the CreateVisibleSignature.java example. That is what I > used for the attached files. It will take the unmodified source file and > append the signature stuff. > > Tilman > > > > >> 2015-12-21 23:12 GMT+03:00 =D0=93=D0=BB=D0=B5=D0=B1 =D0=93.=D0=93. : >> >> I've posted comment on PDFBOX-2729 with my pdf's >>> >>> 2015-12-21 23:56 GMT+04:00 =D0=93=D0=BB=D0=B5=D0=B1 =D0=93.=D0=93. : >>> >>> I've posted my answer to stackoverflow. Files and passwords are >>>> irrelevant in this case. >>>> >>>> 2015-12-21 23:21 GMT+04:00 Tilman Hausherr : >>>> >>>> Am 21.12.2015 um 20:17 schrieb =D0=93=D0=BB=D0=B5=D0=B1 =D0=93.=D0=93.= : >>>>> >>>>> In my case I protect and then sign. This works on one signature, but >>>>>> fail >>>>>> on two. Looks like firs signature gets destroyed in process. >>>>>> >>>>>> I'm surprised it even works with the first signature. Feel free to >>>>> submit your code to PDFBOX-2729, including a PDF preferably in all it= s >>>>> steps. Don't forget the password(s). >>>>> >>>>> Tilman >>>>> >>>>> >>>>> >>>>> 2015-12-21 22:11 GMT+03:00 Tilman Hausherr : >>>>>> >>>>>> Hi, >>>>>> >>>>>>> Protect after signing - don't know how without destroying the >>>>>>> signature(s) >>>>>>> validity; sign after protect - not yet: >>>>>>> https://issues.apache.org/jira/browse/PDFBOX-2729 >>>>>>> >>>>>>> Tilman >>>>>>> >>>>>>> >>>>>>> Am 21.12.2015 um 20:06 schrieb =D0=93=D0=BB=D0=B5=D0=B1 =D0=93.=D0= =93.: >>>>>>> >>>>>>> By the way, is it even possible to protect with password a document >>>>>>> >>>>>>>> that >>>>>>>> is >>>>>>>> signed twice? >>>>>>>> >>>>>>>> 2015-12-21 22:01 GMT+03:00 =D0=93=D0=BB=D0=B5=D0=B1 =D0=93.=D0=93.= : >>>>>>>> >>>>>>>> Aw, forgive me big time! It was mine piece of code that created th= e >>>>>>>> issue. >>>>>>>> >>>>>>>> I was protecting document with password and this somehow messed >>>>>>>>> thing up, >>>>>>>>> even if I left passwords blank. >>>>>>>>> >>>>>>>>> 2015-12-21 21:45 GMT+03:00 Tilman Hausherr >>>>>>>> >: >>>>>>>>> >>>>>>>>> Am 21.12.2015 um 19:43 schrieb =D0=93=D0=BB=D0=B5=D0=B1 =D0=93.= =D0=93.: >>>>>>>>> >>>>>>>>> Or do I need to set specific >>>>>>>>>> >>>>>>>>>> reopsitory? >>>>>>>>>>> >>>>>>>>>>> Ooops, yes, indeed: >>>>>>>>>>> >>>>>>>>>>> https://pdfbox.apache.org/2.0/getting-started.html >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> | ApacheSnapshot Apache >>>>>>>>>> Repository >>>>>>>>>> >>>>>>>>>> https://repository.apache.org/content/groups/snapshots/ >>>>>>>>>> true | >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>> -------------------------------------------------------------------= -- >>>>>>> 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 > > --001a113a07fee3507d0529b53666--