pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1741663 - /pdfbox/branches/1.8/examples/src/main/java/org/apache/pdfbox/examples/signature/CreateVisibleSignature.java
Date Fri, 29 Apr 2016 16:37:13 GMT
Author: tilman
Date: Fri Apr 29 16:37:13 2016
New Revision: 1741663

URL: http://svn.apache.org/viewvc?rev=1741663&view=rev
Log:
PDFBOX-3322: close() options as in 2.x

Modified:
    pdfbox/branches/1.8/examples/src/main/java/org/apache/pdfbox/examples/signature/CreateVisibleSignature.java

Modified: pdfbox/branches/1.8/examples/src/main/java/org/apache/pdfbox/examples/signature/CreateVisibleSignature.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/examples/src/main/java/org/apache/pdfbox/examples/signature/CreateVisibleSignature.java?rev=1741663&r1=1741662&r2=1741663&view=diff
==============================================================================
--- pdfbox/branches/1.8/examples/src/main/java/org/apache/pdfbox/examples/signature/CreateVisibleSignature.java
(original)
+++ pdfbox/branches/1.8/examples/src/main/java/org/apache/pdfbox/examples/signature/CreateVisibleSignature.java
Fri Apr 29 16:37:13 2016
@@ -73,7 +73,7 @@ public class CreateVisibleSignature impl
 
   private Certificate[] cert;
 
-  private SignatureOptions options;
+  private SignatureOptions options = null;
 
   /**
    * Initialize the signature creator with a keystore (pkcs12) and pin that
@@ -174,6 +174,10 @@ public class CreateVisibleSignature impl
 
     // write incremental (only for signing purpose)
     doc.saveIncremental(fis, fos);
+    if (options != null)
+    {
+        options.close();
+    }
 
     return outputDocument;
   }



Mime
View raw message