pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1741662 - /pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/SignatureOptions.java
Date Fri, 29 Apr 2016 16:35:18 GMT
Author: tilman
Date: Fri Apr 29 16:35:17 2016
New Revision: 1741662

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

Modified:
    pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/SignatureOptions.java

Modified: pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/SignatureOptions.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/SignatureOptions.java?rev=1741662&r1=1741661&r2=1741662&view=diff
==============================================================================
--- pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/SignatureOptions.java
(original)
+++ pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/SignatureOptions.java
Fri Apr 29 16:35:17 2016
@@ -113,4 +113,17 @@ public class SignatureOptions
             preferedSignatureSize = size;
         }
     } 
+
+    /**
+     * Closes the visual signature COSDocument, if any.
+     *
+     * @throws IOException if the document could not be closed
+     */
+    public void close() throws IOException
+    {
+        if (visualSignature != null)
+        {
+            visualSignature.close();
+        }
+    }
 }



Mime
View raw message