pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1720968 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPage.java
Date Sat, 19 Dec 2015 19:11:59 GMT
Author: tilman
Date: Sat Dec 19 19:11:58 2015
New Revision: 1720968

URL: http://svn.apache.org/viewvc?rev=1720968&view=rev
Log:
PDFBOX-3172: fix bug that PDPage.getContentStreams() always returns empty when content stream
field is an array, as reported by Sherwood Wang

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPage.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPage.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPage.java?rev=1720968&r1=1720967&r2=1720968&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPage.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPage.java Sat Dec 19 19:11:58
2015
@@ -130,7 +130,7 @@ public class PDPage implements COSObject
         else if (base instanceof COSArray && ((COSArray) base).size() > 0)
         {
             COSArray array = (COSArray)base;
-            for (int i = 0; i < streams.size(); i++)
+            for (int i = 0; i < array.size(); i++)
             {
                 COSStream stream = (COSStream) array.getObject(i);
                 streams.add(new PDStream(stream));



Mime
View raw message