You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by le...@apache.org on 2013/05/25 17:17:36 UTC

svn commit: r1486337 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAppearanceDictionary.java

Author: lehmi
Date: Sat May 25 15:17:36 2013
New Revision: 1486337

URL: http://svn.apache.org/r1486337
Log:
PDFBOX-1599: added some logging about the non-conformance workaround

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAppearanceDictionary.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAppearanceDictionary.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAppearanceDictionary.java?rev=1486337&r1=1486336&r2=1486337&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAppearanceDictionary.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAppearanceDictionary.java Sat May 25 15:17:36 2013
@@ -16,6 +16,8 @@
  */
 package org.apache.pdfbox.pdmodel.interactive.annotation;
 
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
 import org.apache.pdfbox.cos.COSBase;
 import org.apache.pdfbox.cos.COSDictionary;
 import org.apache.pdfbox.cos.COSName;
@@ -35,6 +37,12 @@ import java.util.Map;
  */
 public class PDAppearanceDictionary implements COSObjectable
 {
+
+    /**
+     * Log instance.
+     */
+    private static final Log LOG = LogFactory.getLog(PDAppearanceDictionary.class);
+
     private COSDictionary dictionary;
 
     /**
@@ -108,6 +116,10 @@ public class PDAppearanceDictionary impl
                 COSStream as = (COSStream)stream;
                 actuals.put( asName.getName(), new PDAppearanceStream( as ) );
             }
+            else
+            {
+                LOG.debug("non-conformance workaround: ignore null value for appearance stream.");
+            }
         }
         return retval;
     }
@@ -172,6 +184,10 @@ public class PDAppearanceDictionary impl
                     COSStream as = (COSStream)stream;
                     actuals.put( asName.getName(), new PDAppearanceStream( as ) );
                 }
+                else
+                {
+                    LOG.debug("non-conformance workaround: ignore null value for appearance stream.");
+                }
             }
         }
         return retval;
@@ -238,6 +254,10 @@ public class PDAppearanceDictionary impl
                     COSStream as = (COSStream)stream;
                     actuals.put( asName.getName(), new PDAppearanceStream( as ) );
                 }
+                else
+                {
+                    LOG.debug("non-conformance workaround: ignore null value for appearance stream.");
+                }
             }
         }
         return retval;