pdfbox-commits mailing list archives

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

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

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

Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/COSParser.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/COSParser.java?rev=1811760&r1=1811759&r2=1811760&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/COSParser.java (original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/COSParser.java Tue
Oct 10 18:56:18 2017
@@ -2012,6 +2012,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