pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1642817 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/NonSequentialPDFParser.java
Date Tue, 02 Dec 2014 08:29:08 GMT
Author: tilman
Date: Tue Dec  2 08:29:08 2014
New Revision: 1642817

URL: http://svn.apache.org/r1642817
Log:
PDFBOX-2533: generalize array decryption, as suggested by Maruan Sahyoun

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

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/NonSequentialPDFParser.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/NonSequentialPDFParser.java?rev=1642817&r1=1642816&r2=1642817&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/NonSequentialPDFParser.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/NonSequentialPDFParser.java
Tue Dec  2 08:29:08 2014
@@ -1674,10 +1674,7 @@ public class NonSequentialPDFParser exte
             final COSArray array = (COSArray) pb;
             for (int aIdx = 0, len = array.size(); aIdx < len; aIdx++)
             {
-                if (array.get(aIdx) instanceof COSString)
-                {
-                    decryptString((COSString) array.get(aIdx), objNr, objGenNr);
-                }
+                decrypt(array.get(aIdx), objNr, objGenNr);
             }
         }
     }



Mime
View raw message