pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1691044 - /pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFDebugger.java
Date Tue, 14 Jul 2015 18:00:10 GMT
Author: tilman
Date: Tue Jul 14 18:00:10 2015
New Revision: 1691044

URL: http://svn.apache.org/r1691044
Log:
PDFBOX-2530: fix ClassCastException in page content streams when in page display mode, as
done by Khyrul Bashar in GSoC2015

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=1691044&r1=1691043&r2=1691044&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 Tue Jul 14 18:00:10
2015
@@ -715,6 +715,10 @@ public class PDFDebugger extends javax.s
         {
             selectedNode = ((ArrayEntry) selectedNode).getValue();
         }
+        else if (selectedNode instanceof PageEntry)
+        {
+            selectedNode = ((PageEntry) selectedNode).getDict();
+        }
 
         if (selectedNode instanceof COSObject)
         {



Mime
View raw message