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 8A99D1884E for ; Mon, 21 Dec 2015 19:56:24 +0000 (UTC) Received: (qmail 65329 invoked by uid 500); 21 Dec 2015 19:56:19 -0000 Delivered-To: apmail-pdfbox-users-archive@pdfbox.apache.org Received: (qmail 65259 invoked by uid 500); 21 Dec 2015 19:56:19 -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 65246 invoked by uid 99); 21 Dec 2015 19:56:18 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Dec 2015 19:56:18 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 69ED8C043E for ; Mon, 21 Dec 2015 19:56:18 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-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: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id WF71UxfZSaCE for ; Mon, 21 Dec 2015 19:56:17 +0000 (UTC) Received: from mail-qg0-f46.google.com (mail-qg0-f46.google.com [209.85.192.46]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id EE9F542B74 for ; Mon, 21 Dec 2015 19:56:16 +0000 (UTC) Received: by mail-qg0-f46.google.com with SMTP id 74so47863236qgh.1 for ; Mon, 21 Dec 2015 11:56:16 -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=Zlnj+qRJthFw4KQc19pBaxUDV8C+EdIKaSo/9uDKkR0=; b=teTql485HWWXmVvE8+z+o2tnyL09tziifcY35X8yuT4ICut+trv023shLNUN0M+KIY No/P3spIwMPj+pFUpPGVQMyXTk6R6SQldQ4uvr7MgK2YAi+xr+xa3fhZdcJCXEuUnjXE iawGy3taBN70rS3L+SHhDHuecPZn1lWu7vQl2ZvKb1tT2arYVunPsr1LcOK0Av0f1hqk qpNAQ7CmLzbR0GJKCHXVsfRmgp5usKnc1AGmgnkXgWF8HztZHsh82dgqyH4zvN73BDx6 m7H6OBIg8arWiw3q/r74SrcmRwUT5nYWz+hoWpptDLdLzgYrx1NY4xac0XGX8Mxv/e6R uaXQ== MIME-Version: 1.0 X-Received: by 10.140.176.130 with SMTP id w124mr28779944qhw.59.1450727776692; Mon, 21 Dec 2015 11:56:16 -0800 (PST) Received: by 10.55.150.70 with HTTP; Mon, 21 Dec 2015 11:56:16 -0800 (PST) In-Reply-To: <56785149.8020806@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> Date: Mon, 21 Dec 2015 23:56:16 +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=001a113a01aacbb0e305276de139 --001a113a01aacbb0e305276de139 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 fai= l >> 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 its 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 tha= t >>>> 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 the >>>> 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 > > --001a113a01aacbb0e305276de139--