pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1702509 - /pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFDebugger.java
Date Fri, 11 Sep 2015 16:05:33 GMT
Author: tilman
Date: Fri Sep 11 16:05:32 2015
New Revision: 1702509

URL: http://svn.apache.org/r1702509
Log:
PDFBOX-2941: check for /Thumb before checking for ordinary stream image, because thumbnails
can have /Subtype /Image

Modified:
    pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFDebugger.java

Modified: pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFDebugger.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFDebugger.java?rev=1702509&r1=1702508&r2=1702509&view=diff
==============================================================================
--- pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFDebugger.java (original)
+++ pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFDebugger.java Fri Sep 11 16:05:32
2015
@@ -844,16 +844,17 @@ public class PDFDebugger extends JFrame
             }
             isContentStream = true;
         }
-        else if (COSName.IMAGE.equals((stream).getCOSName(COSName.SUBTYPE)))
-        {
-            Object resourcesObj = path.getParentPath().getParentPath().getLastPathComponent();
-            resourcesDic = (COSDictionary) getUnderneathObject(resourcesObj);
-        }
         else if (COSName.THUMB.equals(key))
         {
             resourcesDic = null;
             isThumb = true;
         }
+        else if (COSName.IMAGE.equals((stream).getCOSName(COSName.SUBTYPE)))
+        {
+            // not to be used for /Thumb, even if it contains /Subtype /Image
+            Object resourcesObj = path.getParentPath().getParentPath().getLastPathComponent();
+            resourcesDic = (COSDictionary) getUnderneathObject(resourcesObj);
+        }
         StreamPane streamPane = new StreamPane(stream, isContentStream, isThumb, resourcesDic);
         replaceRightComponent(streamPane.getPanel());
     }



Mime
View raw message