pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
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 GMT
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);



Mime
View raw message