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 2017/03/22 16:23:08 UTC

svn commit: r1788135 - /pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/filter/CCITTFaxFilter.java

Author: tilman
Date: Wed Mar 22 16:23:08 2017
New Revision: 1788135

URL: http://svn.apache.org/viewvc?rev=1788135&view=rev
Log:
PDFBOX-3727: use height instead of rows, because the later number has been found to be unreliable

Modified:
    pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/filter/CCITTFaxFilter.java

Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/filter/CCITTFaxFilter.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/filter/CCITTFaxFilter.java?rev=1788135&r1=1788134&r2=1788135&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/filter/CCITTFaxFilter.java (original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/filter/CCITTFaxFilter.java Wed Mar 22 16:23:08 2017
@@ -49,8 +49,8 @@ final class CCITTFaxFilter extends Filte
         int height = parameters.getInt(COSName.HEIGHT, COSName.H, 0);
         if (rows > 0 && height > 0)
         {
-            // ensure that rows doesn't contain implausible data, see PDFBOX-771
-            rows = Math.min(rows, height);
+            // PDFBOX-771, PDFBOX-3727: rows in DecodeParms sometimes contains an incorrect value
+            rows = height;
         }
         else
         {