You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2021/11/09 16:53:57 UTC

svn commit: r1894875 - /pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/filter/Filter.java

Author: tilman
Date: Tue Nov  9 16:53:57 2021
New Revision: 1894875

URL: http://svn.apache.org/viewvc?rev=1894875&view=rev
Log:
PDFBOX-5318: abbreviated key name shall take precedence

Modified:
    pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/filter/Filter.java

Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/filter/Filter.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/filter/Filter.java?rev=1894875&r1=1894874&r2=1894875&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/filter/Filter.java (original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/filter/Filter.java Tue Nov  9 16:53:57 2021
@@ -109,8 +109,8 @@ public abstract class Filter
     // normalise the DecodeParams entry so that it is always a dictionary
     protected COSDictionary getDecodeParams(COSDictionary dictionary, int index)
     {
-        COSBase filter = dictionary.getDictionaryObject(COSName.FILTER, COSName.F);
-        COSBase obj = dictionary.getDictionaryObject(COSName.DECODE_PARMS, COSName.DP);
+        COSBase filter = dictionary.getDictionaryObject(COSName.F, COSName.FILTER);
+        COSBase obj = dictionary.getDictionaryObject(COSName.DP, COSName.DECODE_PARMS);
         if (filter instanceof COSName && obj instanceof COSDictionary)
         {
             // PDFBOX-3932: The PDF specification requires "If there is only one filter and that