You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2020/10/26 04:46:53 UTC

svn commit: r1882864 - /pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/signature/CreateEmbeddedTimeStamp.java

Author: tilman
Date: Mon Oct 26 04:46:53 2020
New Revision: 1882864

URL: http://svn.apache.org/viewvc?rev=1882864&view=rev
Log:
PDFBOX-3017: MDP not relevant because only signature content is changed

Modified:
    pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/signature/CreateEmbeddedTimeStamp.java

Modified: pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/signature/CreateEmbeddedTimeStamp.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/signature/CreateEmbeddedTimeStamp.java?rev=1882864&r1=1882863&r2=1882864&view=diff
==============================================================================
--- pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/signature/CreateEmbeddedTimeStamp.java (original)
+++ pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/signature/CreateEmbeddedTimeStamp.java Mon Oct 26 04:46:53 2020
@@ -98,13 +98,6 @@ public class CreateEmbeddedTimeStamp
      */
     private void processTimeStamping(File outFile, String fileName) throws IOException
     {
-        int accessPermissions = SigUtils.getMDPPermission(document);
-        if (accessPermissions == 1)
-        {
-            throw new IllegalStateException(
-                    "No changes to the document are permitted due to DocMDP transform parameters dictionary");
-        }
-
         try
         {
             byte[] documentBytes;