Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id C4CC5200B2D for ; Thu, 16 Jun 2016 18:12:54 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C2B5D160A51; Thu, 16 Jun 2016 16:12:54 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 15C8D1602C5 for ; Thu, 16 Jun 2016 18:12:53 +0200 (CEST) Received: (qmail 29279 invoked by uid 500); 16 Jun 2016 16:12:53 -0000 Mailing-List: contact commits-help@pdfbox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pdfbox.apache.org Delivered-To: mailing list commits@pdfbox.apache.org Received: (qmail 29270 invoked by uid 99); 16 Jun 2016 16:12:53 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jun 2016 16:12:53 +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 DBE20C0421 for ; Thu, 16 Jun 2016 16:12:52 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.426 X-Spam-Level: X-Spam-Status: No, score=-0.426 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id doXxtSL1tT8N for ; Thu, 16 Jun 2016 16:12:52 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 216835FAC8 for ; Thu, 16 Jun 2016 16:12:52 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 5BBFEE01D8 for ; Thu, 16 Jun 2016 16:12:51 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 5A6463A00EC for ; Thu, 16 Jun 2016 16:12:51 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1748752 - /pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/signature/CreateSignature.java Date: Thu, 16 Jun 2016 16:12:51 -0000 To: commits@pdfbox.apache.org From: tilman@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20160616161251.5A6463A00EC@svn01-us-west.apache.org> archived-at: Thu, 16 Jun 2016 16:12:55 -0000 Author: tilman Date: Thu Jun 16 16:12:51 2016 New Revision: 1748752 URL: http://svn.apache.org/viewvc?rev=1748752&view=rev Log: PDFBOX-3383: revert code change that doesn't make sense for invisible signatures Modified: pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/signature/CreateSignature.java Modified: pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/signature/CreateSignature.java URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/signature/CreateSignature.java?rev=1748752&r1=1748751&r2=1748752&view=diff ============================================================================== --- pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/signature/CreateSignature.java (original) +++ pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/signature/CreateSignature.java Thu Jun 16 16:12:51 2016 @@ -38,7 +38,6 @@ import java.util.Enumeration; import org.apache.pdfbox.pdmodel.PDDocument; import org.apache.pdfbox.pdmodel.interactive.digitalsignature.PDSignature; -import org.apache.pdfbox.pdmodel.interactive.digitalsignature.SignatureOptions; /** * An example for singing a PDF with bouncy castle. @@ -150,9 +149,7 @@ public class CreateSignature extends Cre signature.setSignDate(Calendar.getInstance()); // register signature dictionary and sign interface - SignatureOptions signatureOptions = new SignatureOptions(); - signatureOptions.setPage(1); // 0-based - document.addSignature(signature, this, signatureOptions); + document.addSignature(signature, this); // write incremental (only for signing purpose) document.saveIncremental(output);