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 2014/07/15 17:57:11 UTC
svn commit: r1610731 -
/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/cos/COSStream.java
Author: tilman
Date: Tue Jul 15 15:57:10 2014
New Revision: 1610731
URL: http://svn.apache.org/r1610731
Log:
PDFBOX-2207: use written length, as suggested by Simon Steiner
Modified:
pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/cos/COSStream.java
Modified: pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/cos/COSStream.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/cos/COSStream.java?rev=1610731&r1=1610730&r2=1610731&view=diff
==============================================================================
--- pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/cos/COSStream.java (original)
+++ pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/cos/COSStream.java Tue Jul 15 15:57:10 2014
@@ -150,7 +150,7 @@ public class COSStream extends COSDictio
doEncode();
}
long position = filteredStream.getPosition();
- long length = filteredStream.getLength();
+ long length = filteredStream.getLengthWritten();
RandomAccessFileInputStream input =
new RandomAccessFileInputStream( file, position, length );