pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1624896 - /pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/NonSequentialPDFParser.java
Date Sun, 14 Sep 2014 18:58:19 GMT
Author: tilman
Date: Sun Sep 14 18:58:19 2014
New Revision: 1624896

URL: http://svn.apache.org/r1624896
Log:
PDFBOX-2347: use the correct method to get null, not COSNull if "null" in PDF

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

Modified: pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/NonSequentialPDFParser.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/NonSequentialPDFParser.java?rev=1624896&r1=1624895&r2=1624896&view=diff
==============================================================================
--- pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/NonSequentialPDFParser.java
(original)
+++ pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/NonSequentialPDFParser.java
Sun Sep 14 18:58:19 2014
@@ -421,7 +421,7 @@ public class NonSequentialPDFParser exte
         }
         
         // ---- prepare encryption if necessary
-        COSBase trailerEncryptItem = document.getTrailer().getItem(COSName.ENCRYPT);
+        COSBase trailerEncryptItem = document.getTrailer().getDictionaryObject(COSName.ENCRYPT);
         if (trailerEncryptItem != null)
         {
             if (trailerEncryptItem instanceof COSObject)



Mime
View raw message