pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1857351 - /pdfbox/branches/issue45/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDSignatureField.java
Date Thu, 11 Apr 2019 16:34:03 GMT
Author: tilman
Date: Thu Apr 11 16:34:03 2019
New Revision: 1857351

URL: http://svn.apache.org/viewvc?rev=1857351&view=rev
Log:
PDFBOX-3017: crawl whole field tree and not just root

Modified:
    pdfbox/branches/issue45/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDSignatureField.java

Modified: pdfbox/branches/issue45/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDSignatureField.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue45/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDSignatureField.java?rev=1857351&r1=1857350&r2=1857351&view=diff
==============================================================================
--- pdfbox/branches/issue45/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDSignatureField.java
(original)
+++ pdfbox/branches/issue45/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDSignatureField.java
Thu Apr 11 16:34:03 2019
@@ -77,8 +77,7 @@ public class PDSignatureField extends PD
     {
         String fieldName = "Signature";
         Set<String> sigNames = new HashSet<String>();
-        // fixme: this ignores non-terminal fields, so will miss any descendant signatures
-        for (PDField field : getAcroForm().getFields())
+        for (PDField field : getAcroForm().getFieldTree())
         {
             if(field instanceof PDSignatureField)
             {



Mime
View raw message