pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1742217 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java
Date Wed, 04 May 2016 07:33:49 GMT
Author: tilman
Date: Wed May  4 07:33:49 2016
New Revision: 1742217

URL: http://svn.apache.org/viewvc?rev=1742217&view=rev
Log:
PDFBOX-3336: flag signature object for update if existing

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java?rev=1742217&r1=1742216&r2=1742217&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java Wed May  4
07:33:49 2016
@@ -255,6 +255,10 @@ public class PDDocument implements Close
             // backward linking
             signatureField.getWidgets().get(0).setPage(page);
         }
+        else
+        {
+            signatureField.getCOSObject().setNeedToBeUpdated(true);
+        }
         // to conform PDF/A-1 requirement:
         // The /F key's Print flag bit shall be set to 1 and 
         // its Hidden, Invisible and NoView flag bits shall be set to 0



Mime
View raw message