pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1674353 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/PDFStreamParser.java
Date Fri, 17 Apr 2015 16:47:34 GMT
Author: tilman
Date: Fri Apr 17 16:47:33 2015
New Revision: 1674353

URL: http://svn.apache.org/r1674353
Log:
PDFBOX-2762: remove parseCOSStream() call from PDFStreamParser, because there are no streams
in content streams

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/PDFStreamParser.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/PDFStreamParser.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/PDFStreamParser.java?rev=1674353&r1=1674352&r2=1674353&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/PDFStreamParser.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/PDFStreamParser.java Fri
Apr 17 16:47:33 2015
@@ -210,19 +210,10 @@ public class PDFStreamParser extends Bas
 
                 // put back first bracket
                 pdfSource.unread(leftBracket);
-                
-                if(c == '<')
+
+                if (c == '<')
                 {
-                    COSDictionary pod = parseCOSDictionary();
-                    skipSpaces();
-                    if((char)pdfSource.peek() == 's')
-                    {
-                        retval = parseCOSStream( pod );
-                    }
-                    else
-                    {
-                        retval = pod;
-                    }
+                    retval = parseCOSDictionary();
                 }
                 else
                 {



Mime
View raw message