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 60D9D18A47 for ; Tue, 19 Jan 2016 16:59:35 +0000 (UTC) Received: (qmail 48907 invoked by uid 500); 19 Jan 2016 16:59:35 -0000 Delivered-To: apmail-pdfbox-users-archive@pdfbox.apache.org Received: (qmail 48885 invoked by uid 500); 19 Jan 2016 16:59:35 -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 48863 invoked by uid 99); 19 Jan 2016 16:59:34 -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 16:59: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 43CCEC3FD1 for ; Tue, 19 Jan 2016 16:59:34 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.879 X-Spam-Level: ** X-Spam-Status: No, score=2.879 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_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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-us-east.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id RC7cBuMmh8kf for ; Tue, 19 Jan 2016 16:59:33 +0000 (UTC) Received: from mail-qk0-f181.google.com (mail-qk0-f181.google.com [209.85.220.181]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 2012D42ACA for ; Tue, 19 Jan 2016 16:59:33 +0000 (UTC) Received: by mail-qk0-f181.google.com with SMTP id o6so25609712qkc.2 for ; Tue, 19 Jan 2016 08:59:33 -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=zCIYMX1EBKjTp3afjz5l1/+HzUpAJQPFpVOem7xC/Xo=; b=fd47fCRuq2EYQfijBJKuXT7BWD2bKhL5FHPyWtRzikRRNGOP5sZzvmOuAZXd1+Cy0Z fXmKesEZ8YxyT58QNiu9Rtw2zg6mzIw/OqVoonGwRy4soZPUYyNTJ6kIIkUAnBjlVjoy bID7AR87jF7IoS5zTlMCEObcpRUJp0+PHI7TbzITdpeoBVt+R8DwwPrODZzsNoDpx7ZZ dW7mvipWBY3HsqYgaP0tpe4m3fJ081EGiosYfu8PgbggGlWsbZH3gX61dcHE1TkLmDho PsOd9gll7qp58FUahZ04bDNB0rDRHXlh1VPjhRAzODW4CTxxQZGz3kPlB0ipTvF0HynT gsfg== 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=zCIYMX1EBKjTp3afjz5l1/+HzUpAJQPFpVOem7xC/Xo=; b=fMHgTRvHaq/6p9DHXA6ywy6gWHee1WS40LMI97Xy/y+NPZHV2jYldmPQKII8Bm2WbA Qqk2nMG41GGkG7AfN0Lgy4zPHE3znZXbTO0MBQ+fjoVHLLRqYuZvB74cxMmjBF2NV4Oo 53xVeJ2W8YAPMGOoxpjbn9+WEUV2QIJR8FuG8JhLxG8hNBqp6C74E6TifBduMkw7SbW+ 10TUKdcFd4yA+WsPkYqxPEbQGv9AzjsiCjOJDxbcHZBUeO3safO/+KVObpYYh4LjK/D1 zfOJkHntSWQBFt2W7+06ApcA3C6fo44pjpzRu6amwq0bZ26BgWDbiXvfG8+R+2Drr3QE vVNQ== X-Gm-Message-State: ALoCoQlI3BHa3cp1AyZvN71Lnzhj6lMGF3leAkByOaIQFgrU6gfCLUJhIM7D8qBjpcoUwrBSUsKocquH75hpo726omyYkQHzow== MIME-Version: 1.0 X-Received: by 10.55.81.70 with SMTP id f67mr39258220qkb.28.1453222767065; Tue, 19 Jan 2016 08:59:27 -0800 (PST) Received: by 10.55.150.70 with HTTP; Tue, 19 Jan 2016 08:59:27 -0800 (PST) In-Reply-To: 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: Tue, 19 Jan 2016 19:59:27 +0300 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=001a114a83e6cf88990529b2ca91 --001a114a83e6cf88990529b2ca91 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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? 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 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 >>>>>> that >>>>>> is >>>>>> signed twice? >>>>>> >>>>>> 2015-12-21 22:01 GMT+03:00 =D0=93=D0=BB=D0=B5=D0=B1 =D0=93.=D0=93. <= darttyler@gmail.com>: >>>>>> >>>>>> 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 >>> >>> >> > --001a114a83e6cf88990529b2ca91--