pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1811759 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/COSParser.java
Date Tue, 10 Oct 2017 18:56:13 GMT
Author: tilman
Date: Tue Oct 10 18:56:13 2017
New Revision: 1811759

URL: http://svn.apache.org/viewvc?rev=1811759&view=rev
Log:
PDFBOX-3940: /Info dictionary can't have a /A or /Dest item

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=1811759&r1=1811758&r2=1811759&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 Tue Oct 10
18:56:13 2017
@@ -2003,6 +2003,8 @@ public class COSParser extends BaseParse
             }
             // info dictionary
             else if (!dictionary.containsKey(COSName.PARENT)
+                  && !dictionary.containsKey(COSName.A)
+                  && !dictionary.containsKey(COSName.DEST)
                     && (dictionary.containsKey(COSName.MOD_DATE)
                             || dictionary.containsKey(COSName.TITLE)
                             || dictionary.containsKey(COSName.AUTHOR)



Mime
View raw message