pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From msahy...@apache.org
Subject svn commit: r1773463 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDAcroForm.java
Date Fri, 09 Dec 2016 20:35:20 GMT
Author: msahyoun
Date: Fri Dec  9 20:35:20 2016
New Revision: 1773463

URL: http://svn.apache.org/viewvc?rev=1773463&view=rev
Log:
PDFBOX-3262: skip hidden and invisible widget annotations for flattening

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDAcroForm.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDAcroForm.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDAcroForm.java?rev=1773463&r1=1773462&r2=1773463&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDAcroForm.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDAcroForm.java
Fri Dec  9 20:35:20 2016
@@ -233,7 +233,7 @@ public final class PDAcroForm implements
         {
             for (PDAnnotationWidget widget : field.getWidgets())
             {
-                if (widget.getNormalAppearanceStream() != null)
+                if (!widget.isInvisible() && !widget.isHidden() && widget.getNormalAppearanceStream()
!= null)
                 {
                     PDPage page = widget.getPage();
 
@@ -723,6 +723,4 @@ public final class PDAcroForm implements
         return false;
     }
     
-    
-    
 }



Mime
View raw message