pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From le...@apache.org
Subject svn commit: r1663394 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/COSParser.java
Date Mon, 02 Mar 2015 18:41:40 GMT
Author: lehmi
Date: Mon Mar  2 18:41:40 2015
New Revision: 1663394

URL: http://svn.apache.org/r1663394
Log:
PDFBOX-2527: removed encryption dictionary detection

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/COSParser.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/COSParser.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/COSParser.java?rev=1663394&r1=1663393&r2=1663394&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/COSParser.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/COSParser.java Mon Mar 
2 18:41:40 2015
@@ -1549,23 +1549,12 @@ public class COSParser extends BaseParse
                         {
                             trailer.setItem(COSName.INFO, document.getObjectFromPool(key));
                         }
-                        // encryption dictionary
-                        else if (dictionary.containsKey(COSName.FILTER)
-                                && (dictionary.containsKey(COSName.V)
-                                        || dictionary.containsKey(COSName.P)
-                                        || dictionary.containsKey(COSName.CF)
-                                        || dictionary.containsKey(COSName.SUB_FILTER)
-                                        || dictionary.containsKey(COSName.ENCRYPT_META_DATA)
-                                        || dictionary.containsKey(COSName.STM_F)
-                                        || dictionary.containsKey(COSName.STR_F)))
-                        {
-                            trailer.setItem(COSName.ENCRYPT, document.getObjectFromPool(key));
-                        }
+                        // TODO encryption dictionary
                     }
                 }
                 catch(IOException exception)
                 {
-                    LOG.error("Skipped invalid dictionary for object "+key);
+                    LOG.debug("Skipped object "+key+", either it's corrupt or not a dictionary");
                 }
             }
         }



Mime
View raw message