From users-return-11216-archive-asf-public=cust-asf.ponee.io@pdfbox.apache.org Mon Sep 24 15:05:26 2018 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 [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 6A282180649 for ; Mon, 24 Sep 2018 15:05:26 +0200 (CEST) Received: (qmail 65533 invoked by uid 500); 24 Sep 2018 13:05:25 -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 65521 invoked by uid 99); 24 Sep 2018 13:05:24 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Sep 2018 13:05:24 +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 4675CC018C for ; Mon, 24 Sep 2018 13:05:24 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.869 X-Spam-Level: * X-Spam-Status: No, score=1.869 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id b6RYErj7lxJv for ; Mon, 24 Sep 2018 13:05:23 +0000 (UTC) Received: from mail-yw1-f68.google.com (mail-yw1-f68.google.com [209.85.161.68]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id CD54D5F2F0 for ; Mon, 24 Sep 2018 13:05:22 +0000 (UTC) Received: by mail-yw1-f68.google.com with SMTP id q129-v6so7803958ywg.8 for ; Mon, 24 Sep 2018 06:05:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=cq5G8EaafNBqrUrodVUuClQrSY82AZiz/813q2+E//E=; b=io+qHYiV5UYiskXEgwgGEteKHLIGOLOShZUDL/3CJmU3gon9pDi/w9SieidUTy0Y1k Z+7g6vv7RUyGE/P0d0sv7gLh0ecfdqTpjp/XyMMCQP5sYKc78SlkZw7hOKr3cicM505W pEC1LHXBK1Dw2AyXrkxVk4hHfr0yLeXbb1FBzw8bkhk1F8KrX2LwtdEyju72YGb7C+LP nPZgz3bVhw3GwWWpbnh71eBd9FsBm3aOJhjyAtr+ifLQ45QbiQRXhN+6+j2B/fVCPvDS KHat6X+45fFJa026tyQmM3qr30nbOT77CwvsJlnJ9JtFpW7jU8roalhGuMHJt9za8EYU sO6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=cq5G8EaafNBqrUrodVUuClQrSY82AZiz/813q2+E//E=; b=cEh4eNIvDOZhGG9q1JUjad8+WeHU/cQN65fTIlF8qxNmByXMeHTnDnoszjNb7HBe9N qEUbHCHxRBFy5E7RdZfCwtcvdxsKBGRR+3Y4PMlSLk8IHA+ARHNtOGqF12WcVdSAg3l0 1S7b1yfTk48ufXXwOaDzGn+fZalWtYMEkjWW7lBGTvdSM2Mzqv8C3CBVEQWTmhw017ol R9RbHR0jsjxjeuq38P4WVYbbP1o2StsdbPsQa3XKXG2fg4Z0MMG/bO45ZhI9l9ToaVFQ EvUazTBIpOSNXDDdQJwxoErtTMf5ZeaoTSZ1tF3xYBLs7JZcVBg4w5GkgtEV02lEr2Lp 6RGw== X-Gm-Message-State: ABuFfohusuyiodn/CBtR/nOkkMD/xapf8+nkV74ERXEaSaxY0jeZk6Nc JA5qp9eB8eNUTe92cSW1u4MlIIo99uoarMfHZY74SQ== X-Google-Smtp-Source: ACcGV60ERNsTuHdnDsXwBoajzkxgs+hYzCYJR1eo490T4xQXaZGrnAwe+JPWUtYQta2/ixJL6Pw/k+wJA1Id8T/mCs8= X-Received: by 2002:a81:340c:: with SMTP id b12-v6mr18528ywa.108.1537794321389; Mon, 24 Sep 2018 06:05:21 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a81:13d8:0:0:0:0:0 with HTTP; Mon, 24 Sep 2018 06:05:00 -0700 (PDT) In-Reply-To: <179086222.16671540.1537792637246@mail.yahoo.com> References: <179086222.16671540.1537792637246.ref@mail.yahoo.com> <179086222.16671540.1537792637246@mail.yahoo.com> From: Gilad Denneboom Date: Mon, 24 Sep 2018 15:05:00 +0200 Message-ID: Subject: Re: Pdf-document with one signature visible in each page To: users@pdfbox.apache.org Content-Type: multipart/alternative; boundary="000000000000439d1e05769da464" --000000000000439d1e05769da464 Content-Type: text/plain; charset="UTF-8" A digital signature applies to the entire file as a whole. There's no need to place it on every page, and it's not possible, either, as it can't be copied. You'll need to sign each page separately, which will just balloon the size of your file for no good reason. On Mon, Sep 24, 2018 at 2:37 PM, Thomas Hermann wrote: > Hello, > > I try to sign a multi-page pdf document using an External Signature > Support (see org.apache.pdfbox.pdmodel.interactive.digitalsignature. > ExternalSigningSupport). > The signature (covering whole document) shall be embedded in page 1 and > each page shall have a visible box referencing that signature. > > I managed to get the visible signature in page 1 (using template mechanism > described in https://github.com/apache/pdfbox/blob/trunk/examples/ > src/main/java/org/apache/pdfbox/examples/signature/ > CreateVisibleSignature2.java) > but a fail to get a visible box on the other pages. I have no idea how to > do that. > > Can anyone help me? > > Thanks in advance, > > Thomas --000000000000439d1e05769da464--